Webhooks

How to configure and use Webhook actions in GetVoiceBot agents.

Webhook actions allow your GetVoiceBot 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:

  1. Log into your account and navigate to the agent editor.
  2. 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:

Example Instructions

Here is an example of how you might configure a webhook action:

- **Condition**: When the caller wants to book an appointment with authentication.
- **HTTP Method**: POST
- **URL**: https://api.scheduler.com/v2/appointments
- **Headers**: {
    "Authorization": "Bearer [API_KEY]",
    "Client-Id": "[Client ID]",
    "Content-Type": "application/json"
  }
- **Parameters**: {
    "name": "[Caller Name]",
    "phone": "[Caller Phone Number]",
    "date": "[Preferred Date]",
    "time": "[Preferred Time]"
  }


- **Condition**: When the caller requests product availability.
- **HTTP Method**: GET
- **URL**: https://api.store.com/v1/check-availability?product_id=[Product ID]
- **Parameters**: None for GET requests.

Use Cases

Webhook actions can be used in various scenarios:

Explore our functions to see how GetVoiceBot can transform your business interactions!