Nextiva NEXT - NEXT Studio - AI Employee Functions and Examples
Function Reference
Overview
The AI Employee uses predefined system functions to perform automated actions such as creating tickets, sending messages, scheduling appointments, or updating records.
Each function includes required and optional parameters, purpose, and usage notes.
- General Functions
- CRM Integration Functions (HubSpot)
- CRM Integration Functions (Salesforce)
- CRM Integration Functions (Zoho)
- Calendar Integration Functions (NEXT Studio)
- Google Calendar Functions (Workato Integration)
- Outlook Calendar Functions (Workato Integration)
General Functions
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
send_otp_to_contact |
Sends a one-time password (OTP) to the user's phone and email for identity verification. |
|
— |
Use when verifying the customer before sharing sensitive information or completing an action. |
Only supports sending outbound OTP. |
|
verify_otp |
Verifies the OTP entered by the user. |
|
— |
Confirm the user's identity after you send an OTP. |
Requires a previously generated OTP. |
|
transfer_to_department |
Transfers the conversation to another department inbox. |
|
— |
Move the conversation when the customer needs a specialized team. |
Works only for departments configured in your tenant. |
|
send_email |
Sends an email to the user. |
|
— |
Send a follow-up email with details or documentation. |
Uses your domain's outbound email integration. |
|
send_sms |
Sends a text message to the user. |
|
|
Send a confirmation or follow-up text after a ticket or appointment. |
Uses your registered 10DLC number. |
CRM Integration Functions (HubSpot)
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
hubspot_search_contact |
Retrieves a HubSpot contact. |
|
— |
Look up a customer before proceeding with support or lead qualification. |
Returns the contact tied to the phone number. |
|
hubspot_create_ticket |
Creates a support ticket in HubSpot. |
|
— |
Log an issue described during a conversation. |
Uses the phone number the user provided. |
|
hubspot_get_tickets |
Fetches HubSpot tickets for a customer. |
|
— |
Show historical issues before continuing a support flow. |
— |
|
hubspot_create_lead |
Creates a lead in HubSpot. |
|
— |
Collect lead details during a sales conversation. |
Sends details to your CRM instantly. |
|
hubspot_update_contact |
Updates an existing HubSpot contact. |
|
— |
Refresh customer details when changes are provided. |
— |
CRM Integration Functions (Salesforce)
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
salesforce_get_contact |
Retrieves a Salesforce contact. |
|
— |
Identify a customer before resolving their issue. |
Looks up contact by phone. |
|
salesforce_create_ticket |
Creates a Salesforce case. |
|
— |
Log a customer issue into Salesforce. |
Creates a case with the provided details. |
|
salesforce_fetch_tickets |
Fetches cases created for a contact. |
|
— |
View the customer's historical tickets. |
— |
|
salesforce_create_lead |
Creates a lead in Salesforce. |
|
|
Create a sales opportunity for follow-up. |
— |
CRM Integration Functions (Zoho)
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
zoho_search_contact |
Retrieves a Zoho contact. |
|
— |
Fetch contact details before troubleshooting. |
— |
|
zoho_create_ticket |
Creates a Zoho ticket. |
|
— |
Log a support issue into Zoho. |
— |
|
zoho_get_tickets |
Fetches Zoho tickets for a contact. |
|
— |
Review previous conversations or issues. |
— |
|
zoho_create_lead |
Creates a lead in Zoho. |
|
|
Capture lead details from a conversation. |
— |
|
zoho_update_contact |
Updates a Zoho contact. |
|
— |
Apply contact updates provided by the customer. |
— |
Calendar Integration Functions
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
get_appointments |
Retrieves upcoming appointments. |
|
— |
Show the user their upcoming bookings. |
Returns only appointments visible to the tenant. |
|
delete_appointment |
Cancels an existing appointment. |
|
— |
Remove a scheduled appointment on user request. |
— |
Google Calendar Functions
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
google_book_appointment |
Creates a new Google Calendar appointment. |
|
— |
Schedule a call or meeting. |
Only events on a single calendar are supported. |
|
google_check_availability |
Checks availability across a time window. |
|
— |
Suggest possible booking times. |
Checks one calendar at a time. |
|
google_get_appointments |
Gets booked appointments. |
|
— |
Show future appointments for a user. |
— |
|
google_update_appointment |
Updates an existing appointment. |
|
— |
Reschedule an event. |
— |
|
google_delete_appointment |
Deletes an appointment. |
|
— |
Cancel an already booked appointment. |
Appointment must exist. |
Outlook Calendar Functions
|
Function Name |
Purpose |
Required Parameters |
Optional Parameters |
Example Usage |
Notes |
|---|---|---|---|---|---|
|
outlook_create_appointment |
Schedules an Outlook appointment. |
|
— |
Book a follow-up call or meeting. |
Creates event on primary calendar. |
|
outlook_get_appointments |
Retrieves booked Outlook appointments. |
|
— |
View upcoming appointments. |
Only primary calendar supported. |
|
outlook_check_availability |
Checks available time slots. |
|
— |
Provide appointment options to the customer. |
Does not check across multiple calendars. |