Nextiva NEXT - NEXT Studio - AI Employee Functions and Examples

Article 000004004 · Updated Mar 16, 2026 · 2,096 views

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

     

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.

otp – 4-digit OTP contactNumber – user's phone emailAddress – user's email

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.

otp – code entered by customer

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.

department_name – e.g., Billing, Sales

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.

subject, message, emailAddress

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.

phone_number, message

media_url (for MMS)

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.

phoneNumber

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.

ticketName, ticketDescription, contactPhoneNumber

Log an issue described during a conversation.

Uses the phone number the user provided.

hubspot_get_tickets

Fetches HubSpot tickets for a customer.

contactPhoneNumber

Show historical issues before continuing a support flow.

hubspot_create_lead

Creates a lead in HubSpot.

name, phone, metadata

Collect lead details during a sales conversation.

Sends details to your CRM instantly.

hubspot_update_contact

Updates an existing HubSpot contact.

firstName, lastName, email, phone

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.

phoneNumber

Identify a customer before resolving their issue.

Looks up contact by phone.

salesforce_create_ticket

Creates a Salesforce case.

phone, ticketSubject, ticketDescription, caseType, origin

Log a customer issue into Salesforce.

Creates a case with the provided details.

salesforce_fetch_tickets

Fetches cases created for a contact.

businessPhone

View the customer's historical tickets.

salesforce_create_lead

Creates a lead in Salesforce.

firstName, lastName, phone

companyName

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.

phoneNumber

Fetch contact details before troubleshooting.

zoho_create_ticket

Creates a Zoho ticket.

phone, ticketSubject, ticketDescription

Log a support issue into Zoho.

zoho_get_tickets

Fetches Zoho tickets for a contact.

phone

Review previous conversations or issues.

zoho_create_lead

Creates a lead in Zoho.

firstName, lastName, phone

companyName

Capture lead details from a conversation.

zoho_update_contact

Updates a Zoho contact.

firstName, lastName, email, phone

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.

contactNumber or date

Show the user their upcoming bookings.

Returns only appointments visible to the tenant.

delete_appointment

Cancels an existing appointment.

appointmentId

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.

start, end, contactName, meetingDescription, calendarId, contactEmailAddress

Schedule a call or meeting.

Only events on a single calendar are supported.

google_check_availability

Checks availability across a time window.

start_date, end_date, calendarId

Suggest possible booking times.

Checks one calendar at a time.

google_get_appointments

Gets booked appointments.

start_date, end_date, calendarId

Show future appointments for a user.

google_update_appointment

Updates an existing appointment.

appointmentId, start, end, eventId

Reschedule an event.

google_delete_appointment

Deletes an appointment.

eventId

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.

start, end, eventTitle, eventDescription, contactEmailAddress, calendarId

Book a follow-up call or meeting.

Creates event on primary calendar.

outlook_get_appointments

Retrieves booked Outlook appointments.

start_date, end_date

View upcoming appointments.

Only primary calendar supported.

outlook_check_availability

Checks available time slots.

start, end

Provide appointment options to the customer.

Does not check across multiple calendars.

Still need help with this?
Contact support