Function Types:
API Webhooks
These allow the agent to perform actions or retrieve information during a conversation by calling external APIs. This is useful for tasks like booking appointments, fetching user-specific data, or updating records in real-time.Web Form Trigger
Implement a function where the agent can prompt users to fill out a web form during a conversation. This is particularly useful for gathering detailed information or when textual input is more practical than voice. For example: Email, phone number, name, etc.Understanding Function Structure
Webhook Function
Webhook functions include the following components:- Function and Parameter Naming: Ensure that the function name and parameter names are formatted as valid identifiers. They should have no spaces, begin with a letter, and can include underscores or use camelCase, such as “get_email” or “getEmail”.
- Descriptions Provide comprehensive details in your function and parameter descriptions to help the agent understand what the function is for and when to use it.