Skip to main content

Integrations

Integrations extend your voice agents by connecting to external services. This section covers all available integrations and how to configure them.

Available Integrations

IntegrationPurposeStatusPlans
Phone NumbersPhone numbers and callsAvailableAll
SIP TrunkConnect existing phone infrastructureAvailableAll
Google CalendarAppointment schedulingAvailableAll
API KeysExternal application accessAvailableAll
WebhooksReal-time event notificationsAvailableAll
All Plans

Calendar integrations, SIP, API access, and webhooks are available on all plans, including Free.


Phone Number Setup

Phone numbers allow your agents to receive and make real phone calls.

Setup Steps

  1. Go to Phone Numbers in the sidebar
  2. Click "Buy Number"
  3. Select country and number type
  4. Complete purchase
  5. Assign an agent to the number

Numbers are automatically configured and ready to use after purchase.


SIP Trunk Integration

Connect your existing SIP trunk provider to route calls through Hanc.AI voice agents. Available on all plans including Free.

Setup Steps

  1. Go to Phone Numbers in the sidebar
  2. Click "Connect SIP"
  3. Enter your SIP trunk credentials:
    • SIP Server / Domain — your provider's SIP address
    • Username — your SIP account username
    • Password — your SIP account password
    • Port — SIP port (default: 5060)
  4. Click Connect
  5. Assign an agent to handle calls from this trunk

When to Use SIP

ScenarioRecommendation
New to phone serviceBuy numbers through Hanc.AI (simpler setup)
Existing PBX systemUse SIP trunk to integrate
Enterprise telephonySIP trunk for full control
Multiple providersSIP for flexibility

Google Calendar Integration

Connect Google Calendar to enable your voice agents to check availability and book appointments during calls.

Setup Steps

  1. Go to IntegrationCalendars
  2. Click "Connect Google Calendar"
  3. Sign in with Google
  4. Authorize Hanc.AI access

Permissions requested:

  • View calendar events (to check availability)
  • Create calendar events (to book appointments)

Calendar Configuration

After connecting, configure the calendar tool on your agent:

SettingDescription
calendar_idWhich Google Calendar to use for scheduling
timezoneTimezone for appointment scheduling (e.g., Europe/Vienna)
work_hoursAvailable hours for booking (e.g., Monday-Friday 9:00-18:00)
slot_durationDefault appointment length (e.g., 30 minutes)
bufferBuffer time between appointments (e.g., 15 minutes)

Calendar Usage in Agents

Once connected and configured, agents can:

  • Check availability for specific dates and times
  • Book appointments automatically
  • Respect work hours and buffer times
  • Handle rescheduling requests

Example conversation:

Customer: "Can I book an appointment for Tuesday at 3pm?"

Agent: [Checks calendar]
"Yes, Tuesday at 3pm is available.
May I have your name to complete the booking?"

API Keys

Generate API keys to integrate Hanc.AI with your own applications.

Creating an API Key

You can create up to 3 API keys per user.

  1. Go to IntegrationAPI Keys
  2. Click "Create API Key"
  3. Enter a name (e.g., "CRM Integration")
  4. Set permissions (read, write, admin)
  5. Copy the key immediately (shown only once)

API Key Security

Important
  • Store keys securely (environment variables, secrets manager)
  • Never commit keys to version control
  • Rotate keys periodically
  • Delete unused keys

Using API Keys

Include in API requests:

curl -X GET "https://api.hanc.ai/v1/agent/list" \
-H "x-api-key: YOUR_API_KEY"

API Key Permissions

PermissionAccess
ReadView agents, calls, analytics
WriteCreate/modify agents, upload KB
AdminAll operations, delete, settings

Available API Endpoints

Base URLhttps://api.hanc.ai
AuthenticationAPI Key via x-api-key header
FormatJSON

Calls

ActionMethodEndpoint
List callsGET/v1/call/list
Call details (transcript, sentiment, summary)GET/v1/call/:id
General analytics (metrics by date/agent)GET/v1/call/general-metrics
Daily analyticsGET/v1/call/daily-metrics
Sentiment statisticsGET/v1/call/sentiment-stats
Cost breakdownGET/v1/call/costs-breakdown
Export calls (CSV)GET/v1/call/list/export
Export costs (CSV)GET/v1/call/costs-breakdown/export
Make a phone callPOST/v1/call/make-phone-call
Make a web callPOST/v1/call/make-web-call

Agents

ActionMethodEndpoint
List agentsGET/v1/agent/list
Agent detailsGET/v1/agent/:id
Create agentPOST/v1/agent
Update agentPATCH/v1/agent/:id
Delete agentDELETE/v1/agent/:id
Agent call statisticsGET/v1/agent/:id/call-stats
List agent templatesGET/v1/agent/agent_template/list

Agent Actions:

ActionMethodEndpoint
List actionsGET/v1/agent/:id/actions
Add actionPOST/v1/agent/:id/actions
Update actionPATCH/v1/agent/:id/actions/:actionId
Delete actionDELETE/v1/agent/:id/actions/:actionId

Agent Tools:

ActionMethodEndpoint
List toolsGET/v1/agent/:id/tools
Add toolPOST/v1/agent/:id/tools
Update toolPATCH/v1/agent/:id/tools/:toolId
Delete toolDELETE/v1/agent/:id/tools/:toolId

Knowledge Base

ActionMethodEndpoint
List knowledge basesGET/v1/knowledge-base/list
Create knowledge basePOST/v1/knowledge-base
Upload file(s)POST/v1/knowledge-base/:id/file(s)
Delete fileDELETE/v1/knowledge-base/:id/file
Assign agentsPUT/v1/knowledge-base/:id/agents

Phone Numbers

ActionMethodEndpoint
List numbersGET/v1/phone-number/list
Available numbers (by country)GET/v1/phone-number/available
Buy a numberPOST/v1/phone-number/buy
Import numberPOST/v1/phone-number/import
Connect to SIPPATCH/v1/phone-number/connect-to-sip

Voices

ActionMethodEndpoint
List voicesGET/v1/voice/list

Filter by language: GET /v1/voice/list?language=de

Subscription

ActionMethodEndpoint
Subscription detailsGET/v1/subscription
Configure auto top-upPATCH/v1/subscription/auto-top-up
Set top-up amountPATCH/v1/subscription/top-up-amount

Customers

ActionMethodEndpoint
List customersGET/v1/customer/list
Customer detailsGET/v1/customer/:id
Create customerPOST/v1/customer
Update customerPATCH/v1/customer/:id
Delete customerDELETE/v1/customer/:id

Workspaces

ActionMethodEndpoint
Workspace operationsGET/POST/PATCH/DELETE/v1/workspaces/*
Invite memberPOST/v1/workspaces/:id/invite-member
Remove memberDELETE/v1/workspaces/:id/invite-member

What's Not Available via API

Some operations are only available through the dashboard:

FeatureReason
API key managementSecurity — keys can't create other keys
Phone number setupRequires interactive setup
Google Calendar integrationRequires interactive authorization
Billing & paymentsManaged through the dashboard

Webhooks

Configure webhooks to receive real-time notifications about events in your Hanc.AI account.

Setup

  1. Go to IntegrationWebhooks
  2. Enter your webhook endpoint URL
  3. Select events to subscribe to
  4. Save configuration

Webhooks send HTTP POST requests to your endpoint with event data in JSON format.


Post-Call Actions

Post-call actions trigger automatically after a voice agent conversation ends. Configure these on individual agents.

Available Action Types

ActionDescription
EmailSend an email summary of the call (to business owner, customer, or both)
SMSSend an SMS notification after the call
WhatsAppSend a WhatsApp message after the call
API CallMake an HTTP request to an external endpoint with call data

Setup

  1. Go to Voice Agents → select your agent
  2. Open the Actions tab
  3. Click "Add Action"
  4. Select action type and configure:
    • Trigger: When the action fires (e.g., after every call, only on specific outcomes)
    • Recipients: Who receives the notification
    • Content: Message template with call data variables

Custom Integrations

Using the API

Build custom integrations using the Hanc.AI API:

Base URL: https://api.hanc.ai/v1
Authentication: Bearer token (API key)
Format: JSON

API Documentation

See the API Reference for the full list of available endpoints.


Integration Best Practices

Security

  • Store credentials securely
  • Rotate API keys regularly
  • Limit permissions to minimum needed

Reliability

  • Log all integration events
  • Monitor integration health

Testing

  • Test integrations in staging first
  • Verify data flow both directions
  • Test error scenarios
  • Document integration setup

Troubleshooting

Integration won't connect

  1. Verify credentials are correct
  2. Check for typos
  3. Ensure third-party account is active
  4. Try disconnecting and reconnecting

Calendar not syncing

  1. Re-authorize calendar access
  2. Check calendar permissions
  3. Verify selected calendar is correct
  4. Check for sync delays (up to 5 minutes)