Agent Functions
Webhooks
How to configure and use Webhook actions in Vida agents.
Webhook actions allow your Vida AI phone agents to interact with external systems dynamically. By configuring webhook actions, you can fetch and send data to various endpoints, enabling your agent to provide up-to-date and context-specific information to callers.
Adding a Webhook Action
To add a webhook action to your agent:
- Log into your account and navigate to the agent editor.
- Click the (+) button in the Functions section and select the “Webhooks” action.
Configuring the Webhook Action
Once added, you need to provide instructions to the agent on how and when to use the webhook. You will specify:
- Conditions: Describe under what conditions the agent should send the HTTP request.
- HTTP Method: Specify whether it should be a GET or POST request.
- URL: The endpoint the request will be sent to.
- Parameters: For POST requests, define the JSON payload to be sent.
Example Instructions
Here is an example of how you might configure a webhook action:
Use Cases
Webhook actions can be used in various scenarios:
- Fetching Real-Time Data: Get the latest information such as weather updates, stock prices, or product availability.
- Submitting Data: Send customer information or booking details to your CRM or scheduling system.
- Dynamic Responses: Provide context-specific responses based on data fetched from external systems.
Explore our functions to see how Vida can transform your business interactions!