Skip to main content
Webhook actions allow your Telzino AI phone agents to interact with external systems during calls. You can fetch data, create support tickets, log calls to your CRM, and more.

Webhook Conditions

Webhooks can be triggered at different points in the call lifecycle:
Limits: You can configure one before_call webhook, up to four during_call webhooks, and one after_call webhook per agent.

Adding a Webhook via Dashboard

1

Navigate to Agent Settings

Log into your account and go to Agent Settings > Functions.
2

Add Webhook Action

Click the (+) button and select Webhooks.
3

Configure the Webhook

Fill in the webhook configuration form with the required fields.

Webhook Configuration

Each webhook requires the following configuration:

Required Fields

Optional Fields

How Parameters Work

Parameters are the key to making webhooks intelligent. When you define parameters:
  1. You specify the key name - What the external API expects (e.g., email, subject, priority)
  2. You provide a default/example value - Used as a fallback or guide for the AI
  3. The AI extracts actual values - During the call, the AI analyzes the conversation and fills in real values
If you leave a parameter value empty, the AI will attempt to generate an appropriate value based on the conversation context. This is not reliable however, so avoid this whenever possible.

Example Parameter Configuration

In this example:
  • customer_name and issue_summary will be extracted from the conversation
  • email defaults to [email protected] if the caller doesn’t provide one
  • priority defaults to normal unless the AI determines otherwise

Real-World Examples

Zendesk Ticket Creation

Create a support ticket in Zendesk during or after a call:
For Zendesk, use Basic authentication with your email and API token:
In JavaScript:

Freshdesk Ticket Creation

CRM Integration (Before Call)

Fetch caller information before the agent answers:

Post-Call Logging

Log call details to your system after the call ends:

API Configuration

You can also configure webhooks via the API when creating or updating an agent. Webhooks are stored in the extensions.tools array. Model Context Protocol (MCP) connections use the sibling extensions.mcp_servers array. GET responses document the stored shape here; POST/PUT use the validated request shape here (they differ today). Example request body with webhooks only:

Best Practices

The description helps the AI understand when to trigger the webhook. Be specific:Good: “Creates a support ticket when the customer reports a problem or needs help with their order”Bad: “Creates a ticket”
Use descriptive key names that match what your external API expects. The AI uses these names to understand what data to extract.
For optional parameters, provide sensible defaults. For required parameters where you want AI extraction, leave the value empty.
Never expose API keys in client-side code. Use environment variables or secure credential storage when possible.
Test your webhook endpoints independently before configuring them in your agent. Use tools like Postman or curl to verify they work correctly.

Troubleshooting