Skip to main content

Overview

This guide covers advanced agent configuration options that give you fine-grained control over your agent’s behavior:
  1. Webhook Configuration — Real-time event notifications to your server
  2. Last Message / Farewell — Professional conversation closing
  3. Function Calling API — Programmatic function management
  4. Multi-language Support — Serve customers in multiple languages
  5. Greeting Configuration — Control who speaks first
  6. Inactivity Timeout — Automatic call cleanup

1. Webhook Configuration

Overview

Webhooks send real-time HTTP POST notifications to your server when agent events occur. Use webhooks to:
  • Trigger actions in your external systems
  • Log call events for compliance
  • Update CRM records in real-time
  • Send notifications to your team
  • Sync data with external databases

Setup Webhook

Via Studio

  1. Go to your agent → SettingsWebhook
  2. Click Configure Webhook
  3. Enter your Webhook URL (HTTPS required)
  4. Click Save

Via API

Response:

Remove Webhook

Webhook Payload

Webhooks send JSON POST requests with the following structure:
Webhook events are currently in beta. The payload structure may evolve. For critical integrations, log all webhook payloads for debugging.

Verify Webhook Signature (Coming Soon)

All webhook requests will include a signature header for security:

Verify in Node.js (Example)

Webhook Best Practices

Respond Quickly

Return 200 OK within 5 seconds. Process heavy tasks asynchronously.

Use HTTPS

Webhook URLs must use HTTPS for security. HTTP URLs will be rejected.

Log Everything

Log all webhook events for debugging and audit trails.

Validate Payload

Always validate the webhook payload structure before processing.

Troubleshooting

Check:
  1. Is webhook URL accessible from public internet?
  2. Is HTTPS enabled?
  3. Is webhook configured on the agent?
  4. Check your server logs for incoming POST requests
Test: Use a service like webhook.site to test webhook delivery.
Problem: URL format validation failed.Solution:
  • Ensure URL starts with https://
  • Include full domain (e.g., https://api.example.com/webhook)
  • No trailing spaces or special characters

2. Last Message / Farewell

Overview

The Last Message (farewell message) is a closing statement your agent says when the conversation ends naturally. This creates a professional, polished ending to every call.

When It’s Used

Triggers Last Message:
  • ✅ User says “thank you, goodbye”
  • ✅ Issue resolved and user confirms
  • ✅ Agent completes all tasks
  • ✅ Natural conversation conclusion
Does NOT Trigger:
  • ❌ Call dropped/technical error
  • ❌ Inactivity timeout
  • ❌ User hangs up abruptly
  • ❌ Escalation to human

Configure Farewell Message

Via Studio

  1. Go to your agent → SettingsConversation
  2. Find Last Message field
  3. Enter your farewell message (max 100 characters)
  4. Click Save

Examples

Customer Support:
Sales:
Appointment Booking:
Medical:

Best Practices

Keep It Short

Maximum 100 characters. Long farewells frustrate users.

Match Your Brand

Use tone consistent with your brand (professional, friendly, casual).

Include Well-Wishes

“Have a great day” leaves positive final impression.

Avoid CTAs

Farewell is not the time for “Visit our website” or other requests.

3. Function Calling API

Overview

Manage agent functions programmatically via dedicated API endpoints. Enable/disable functions, update configurations, and audit function usage.

Endpoints

Update Function Calling Status

Enable/Disable Function Calling

Response:

Parameters

Add/Remove Individual Functions

Add Function:
Remove Function:

Built-in Functions

List Available Functions

Response:

Custom Functions

Create Custom Function

Update Custom Function

Delete Custom Function


4. Multi-language Support

Overview

Configure your agent to understand and respond in multiple languages. The agent automatically detects the user’s language and responds accordingly.

Supported Languages

Currently Supported:
Language validation: The API validates language codes against the supported list. Invalid languages will return a 400 error.

Configure Languages

Via Studio

  1. Go to your agent → SettingsLanguages
  2. Select Primary Language (default response language)
  3. Add Secondary Languages (auto-detected)
  4. Click Save

Via API

Note: Languages are stored in the AgentLanguage table and linked to the agent.

How It Works

Best Practices

Set Clear Primary Language

Define one primary language for system prompt and default behavior.

Test Each Language

Test your agent in every configured language before going live.

Use Native Speakers

Have native speakers validate pronunciation and grammar.

Cultural Adaptation

Adapt examples and references for each language/culture.

Limitations

  • System prompt is in primary language only
  • Functions return data in primary language
  • Knowledge base content should match configured languages
  • Mixed language conversations may confuse detection

5. Greeting Configuration

Overview

Control who speaks first when the call starts — the agent (with a greeting) or the user.

Greeting Types

Agent First (Default)

Agent speaks immediately after user joins:
Best for:
  • Customer support
  • Receptionist agents
  • Professional contexts
  • Guided conversations

User First

Agent waits for user to speak first:
Best for:
  • Outbound calls (user expecting call)
  • Survey/follow-up calls
  • Casual conversations
  • When user initiated the action

Configure Greeting

Via Studio

  1. Go to your agent → SettingsConversation
  2. Select Greeting Type:
    • AI speaks first (Agent First)
    • User speaks first (User First)
  3. If Agent First, enter Greeting Message
  4. Click Save

Greeting Message Template

Examples

Customer Support:
Appointment Reminder:
Sales Outbound:

Advanced: Dynamic Greetings

Use variables in greeting messages:

Configure Dynamic Greeting

Variable support is coming soon. Currently, greeting messages are static text.

6. Inactivity Timeout

Overview

Inactivity Timeout automatically ends calls after a period of silence, preventing abandoned calls from consuming resources.

How It Works

Configure Timeout

Via Studio

  1. Go to your agent → SettingsConversation
  2. Find Inactivity Timeout slider
  3. Set value (10-60 seconds)
  4. Click Save

Via API

Validation:
  • Minimum: 10 seconds
  • Maximum: 60 seconds
  • Default: 30 seconds

Timeout Behavior

When timeout expires:
  1. Call ends automatically
  2. Session marked as abandoned (not completed)
  3. Billing session ends with actual duration
No warning message: Currently, the call ends silently without a warning message. This behavior may change in future updates.

Best Practices

Don't Set Too Short

Under 10 seconds frustrates users who pause to think.

Consider Your Audience

Elderly users need longer timeouts than tech-savvy users.

Monitor Abandoned Rate

High abandoned rate may indicate timeout too short.

Test Realistically

Test with real users to find optimal timeout duration.

Troubleshooting

Problem: Timeout may be set too short.Solution:
  • Increase timeout to 45-60 seconds
  • Check if background noise is being detected as speech
  • Verify microphone sensitivity settings
Problem: Timeout too long or not triggering.Solution:
  • Decrease timeout to 20-30 seconds
  • Check if agent is generating background noise
  • Contact support if issue persists

Next Steps

Configure Webhooks

Set up real-time event notifications for your systems.

Customize Greetings

Create professional first impressions with custom greetings.

Manage Functions

Programmatically control agent functions via API.

Enable Multi-language

Serve customers in their preferred language.