HostWebhook Help Center

Set up a voice agent

Connect ElevenLabs, add a Voice Agent, give it your flows as tools and a knowledge base, sync it, talk to it, link it to a Chat Trigger and put it on your site or your phone.

Time about 20 minutesYou need a HostWebhook account and an AI provider API keyUpdated October 24, 2026

A voice agent answers people out loud — on your website or on the phone — and uses your flows as its tools: it can look up an order, book a slot or send an email while it talks. ElevenLabs carries the voice and the audio; HostWebhook gives the agent its tools, its knowledge and the record of every call.

This guide takes you from nothing to an agent you can talk to. For every setting in detail, see the Voice Agent node in the docs.

Create an ElevenLabs API key

Voice agents run on ElevenLabs (Vapi and Retell show as Coming soon and can't be picked yet). You need an ElevenLabs account: sign up at elevenlabs.io if you don't have one.

In ElevenLabs, go to Developers → API keys and click Create API Key. Give it these permissions:

  • ElevenLabs Agents: write
  • Voices: read

An unrestricted key works too. ElevenLabs only connects with an API key, there is no "Sign in with ElevenLabs".

Save the key in HostWebhook

In HostWebhook, go to Settings → Credentials and click New Credential.

  1. Marker 1: Type ElevenLabs in the search box and pick it.
  2. Marker 2: Credential Name is only for you. Use a name you'll recognize on the voice agent, such as “ElevenLabs”.
  3. Marker 3: API Key: paste the key from step 1. It's encrypted at rest.
  4. Marker 4: The same permissions as step 1, in case you need them again.
New Credential page with ElevenLabs picked, the name field and the API key field

Click Create credential at the bottom. You can use the credential on any voice agent in your organization.

Add a Voice Agent node

In the left sidebar, click Flows. Open the node palette in the top-left corner of the canvas and click Voice Agent under Sources.

  1. Marker 1: The node palette. Click + in the top-left corner of the canvas to open it.
  2. Marker 2: Voice Agent is the last entry under Sources.
Flows canvas with the node palette open and Voice Agent under Sources

Click the new node, then Full config at the top of its panel to open the agent's page. The agent starts paused: leave it that way while you set it up.

Configure the agent

Everything starts on the Config tab. Changes save on their own; look for Saved in the top-right corner.

  1. Marker 1: The Config tab.
  2. Marker 2: Provider: ElevenLabs.
  3. Marker 3: Credential: the ElevenLabs credential from step 2.
  4. Marker 4: Already have an agent in ElevenLabs? Import your agent brings its configuration in instead of typing it all again.
  5. Marker 5: LLM provider: the model behind the conversation. Pick the model right below it.
Voice agent Config tab with ElevenLabs as provider, the credential connected and Anthropic as LLM provider

Scroll down the same tab to tell the agent who it is and how it sounds.

  1. Marker 1: System prompt: who the agent is and what it must not do. On a call nobody reads a disclaimer, so the rules have to be here.
  2. Marker 2: First message: what it says when the call starts. Leave it empty and the agent waits in silence, which on a phone sounds like a dead line.
  3. Marker 3: Languages: the first one is the language calls open in. Add every language callers may use. To switch mid-call, the agent also needs Language detection on (step 5).
  4. Marker 4: Voice: the selected voice. Pick another from the list below, and press play to hear it first.
System prompt, first message, languages and voice picker of a voice agent

Give it tools

Open the Tools tab.

  1. Marker 1: The Tools tab.
  2. Marker 2: Under Add tools from, pick where the tools come from (see below).
  3. Marker 3: Built-in tools need no flow: language detection, ending the call, keypad tones, voicemail detection and more. Turn on the ones you want.
Voice agent Tools tab with the three places tools can come from and the built-in tools
  • A HostWebhook flow: nodes with their AI toolkit on (Slack, MongoDB, HTTP, Notion…) or an AI Node. Each node gives the agent its tools; the ones that change data start off.
  • An API by URL: your API, with a base URL and its headers.
  • Your server via a tunnel: a local server exposed with hostwh expose.

Write clear tool descriptions: the agent decides whether to call a tool from its name and description alone.

No Google tools on a voice agent

A voice agent can't use Gmail, Sheets, Drive, Docs, Calendar, Google Contacts or Google Analytics nodes. Voice providers may use what they receive to improve their models, and Google doesn't allow its users' data to go there. If you add one, saving fails with "Voice agents can't use Google tools" and names what to remove.

Add a knowledge base

Optional

A knowledge base lets the agent answer questions like “what's your returns policy?” from your own documents, without a tool call and without you pasting the policy into the prompt. Open the Knowledge Base tab. It stays locked until the agent has a provider and a credential (step 4).

  1. Marker 1: The Knowledge Base tab.
  2. Marker 2: Upload files: drop files on the box, or click browse.
  3. Marker 3: Or select vector store: pick one or more of your stores. Each one shows as a tag below the list.
  4. Marker 4: Enable RAG: off by default. Turn it on, or the agent ignores the files and stores above.
Knowledge Base tab of a voice agent with the upload box, a vector store picked and Enable RAG on

The agent can draw on three sources, and you can mix them:

  • Upload files: drag files onto the box, or click it to pick them. PDF, TXT, MD, DOCX, HTML and EPUB, up to 50 MB each. Every file is scanned before the agent can use it.
  • Or select vector store: pick one or more of your Vector Stores. Their content is sent to ElevenLabs as the agent's knowledge base on every sync, replacing what was sent before, so nothing is duplicated.
  • Documents already in ElevenLabs: if you imported an agent, its documents show up here. You can add more from your ElevenLabs account. They're used where they are: nothing is copied.

Turn on Enable RAG, or the agent ignores all of it.

Below the sources, in RAG tuning, Enable RAG is off by default. While it's off, the agent doesn't look anything up in the files or stores above. Turn it on, then sync (step 8).

The RAG tuning settings

The defaults work for most agents. Change them only if answers miss content you know is there, or pull in passages that don't belong.

  • Embedding model: keep text-embedding-3-small.
  • Max vector distance: how close a passage must be to the question to be used, from 0 (exact match) to 1 (anything). Default 0.6. Lower it if the agent quotes unrelated passages.
  • Max documents length (chars): the most text from the knowledge base that goes into one answer. Default 50,000.
  • Max retrieved chunks: the most passages looked up per question. Default 20.
  • Num candidates: how many passages are fetched before the best ones are kept. Empty lets ElevenLabs decide.
  • Query rewrite prompt: replaces the instructions ElevenLabs uses to rephrase the caller's question before searching. Leave empty.

On a document from ElevenLabs, Remove only takes it off this agent. Delete also deletes it from your ElevenLabs account on the next sync, unless another agent still uses it.

Linked to a Chat Trigger with Inherit? Then the vector stores come from that Chat Trigger's AI node and can't be picked here (step 11). Files you upload on this tab still count.

Set a daily limit

On the Advanced tab, scroll to Limits & alerts.

  1. Marker 1: Concurrent conversations: how many calls can run at the same time. -1 means no limit.
  2. Marker 2: Conversations per day: a hard daily cap. It's the cheapest insurance against a loop that keeps calling all night.
  3. Marker 3: Allow bursting (on by default): when your ElevenLabs limit is hit, calls can go up to 3× over it, and ElevenLabs bills the extra ones at double rate. Turn it off if a predictable bill matters more than never dropping a call.
  4. Marker 4: Alert these webhooks: webhooks from your ElevenLabs workspace that are told when this agent's calls start failing. Refresh brings in ones you just added there.
Limits and alerts section of a voice agent's Advanced tab

Sync it to ElevenLabs

Open the Sync & Webhook tab. Until you sync, nothing you set here exists at ElevenLabs.

  1. Marker 1: The Sync & Webhook tab.
  2. Marker 2: Provider sync says unsynced: the agent doesn't exist at ElevenLabs yet.
  3. Marker 3: Click Sync to ElevenLabs. It saves any unsaved change first.
Sync and Webhook tab of a voice agent that is not synced yet

When it's done, the agent shows as synced.

  1. Marker 1: synced, with the time of the last sync and the agent's id at ElevenLabs.
  2. Marker 2: From now on the button reads Re-sync to ElevenLabs. Click it after every change: until you do, the agent answers with its last synced version.
  3. Marker 3: Test agent appears once the agent is synced (step 9).
Sync and Webhook tab after syncing, with the Re-sync and Test agent buttons

Talk to it

Click Test agent on the same tab: the call starts right away, and your browser asks to use your microphone.

You can also talk to it without leaving the canvas: click the node, and open Test call in its panel.

  1. Marker 1: The Voice Agent node. Click it to open its panel.
  2. Marker 2: The Test call tab.
  3. Marker 3: Tap the microphone to start the call. Nothing starts until you do.
Voice agent node selected on the canvas with the Test call tab open in its panel

The tools run for real, so try a read-only question first. While the agent is paused it talks, but its tools don't run.

Style the voice widget

Your visitors talk to the agent through the voice widget: a microphone button that opens a call panel. Open the Widget tab to choose how it looks. It isn't the same as Talk to it (step 9): that's where you test the agent, and this is what your visitors will see.

  1. Marker 1: The Widget tab.
  2. Marker 2: How the widget looks: color, display name, mode, position and theme (see below).
  3. Marker 3: Live preview: the real widget, with your settings.
Widget tab of a voice agent with its style settings and the live preview
  • Primary color: the color of the button and the call panel.
  • Display name: the name at the top of the call panel. Empty uses the agent's name.
  • Mode: Modal (floating launcher) puts a round button in a corner of the page. Inline (fills container) shows the panel inside a box of your page instead.
  • Position: which corner the button sits in. Modal mode only.
  • Theme: Auto (follows system), Light or Dark.

The Live preview on the right is the real widget, and it updates as you change things. Once the agent is synced, you can start a real call from the preview.

These settings are built into the snippet on the Embed tab (step 12). Change them before you copy it.

Link it to a Chat Trigger

On your website, every voice call starts through a Chat Trigger. The Chat Trigger checks who can start a call and how many calls they can make, the same as it does for chat messages. Without one, the snippet on the Embed tab doesn't work.

Sync the agent first.

Only agents that are synced to ElevenLabs (step 8) can be picked in a Chat Trigger.

  1. Open the Chat Trigger your site will use. If you don't have one yet, follow Build a chatbot with a Chat Trigger first.
  2. Open its Advanced tab and scroll to Voice mode.
  3. In the Voice agent list, pick this agent. Provider and Agent id fill in below it.
  4. To turn voice off later, pick Disabled (no voice mode).
  1. Marker 1: Voice agent: pick this agent. Only synced agents are in the list.
  2. Marker 2: Provider and Agent id fill in once you pick it.
Voice mode section of a Chat Trigger's Advanced tab with a voice agent picked

From now on, the Chat Trigger's chat widget shows a microphone button next to the chat, so visitors can type or talk. Calls follow the Chat Trigger's own rules: its Authentication and Rate limit apply to voice the same as to chat.

Let the Chat Trigger's AI node set up the agent (Inherit)

At the top of the agent's page there's a Source switch. Inherit from chat-trigger stays greyed out until a Chat Trigger has this agent in Voice mode. The switch has two options:

  • Manual: you set up the agent's prompt, tools and knowledge base on its own tabs, as in this guide.
  • Inherit from chat-trigger: the agent copies the system prompt, the tools and the vector stores of the AI node connected to that Chat Trigger. It copies them again on every save and sync. If several Chat Triggers use this agent, pick one in the list next to the switch.
  1. Marker 1: The Source switch: Manual or Inherit from chat-trigger.
Source switch at the top of a voice agent's page, with Manual and Inherit from chat-trigger

Use Inherit when the voice agent should know and do exactly what your chatbot does. Those settings can't be changed on the agent's tabs while it's on: change them on the AI node, then Re-sync to ElevenLabs.

Embed it on your site

First click Activate at the top of the agent's page, and make sure the Chat Trigger is active too. A paused agent talks, but its tools don't run.

You can put the voice agent on your site in two ways:

  • Inside your chatbot. Put the Chat Trigger's chat widget on your site as shown in Build a chatbot with a Chat Trigger, step 10. After step 11 it shows a microphone button next to the chat. If the widget is already on your site, there's nothing to change.
  • As a voice-only button. Open the agent's Embed tab and copy one of the snippets under Web widget embed.
SnippetUse it when
HTML — single script tagAny website. Paste it before </body>. It always loads the latest widget version, so you never need to update it.
React — npm packageA React or Next.js app. Run npm install @hostwebhook/voice-widget first.
  1. Marker 1: The Embed tab.
  2. Marker 2: Access & security: who can start a call at ElevenLabs (see below). Here Signed URL is selected.
  3. Marker 3: Copy copies the HTML snippet, with your Chat Trigger's id already in it.
Embed tab of a voice agent with Signed URL selected and the HTML snippet

The snippet already includes the Chat Trigger's id (data-chat-id), plus the display name from the Widget tab, and the color if you changed it.

The snippet shows <your-chat-trigger-id>?

A yellow notice above the snippets says the agent isn't linked to a Chat Trigger yet. Do step 11, then come back to this tab and copy the snippet again.

HTML
<script
src="https://www.hostwebhook.com/voice-widget.js"
data-chat-id="your-chat-trigger-id"
data-agent-name="Brightloop Coffee"
data-primary="#0ea5e9"
defer
></script>

Access & security, on the same tab, decides who can start a call directly at ElevenLabs with this agent's id. That's a separate route from your Chat Trigger:

  • Public: anyone who knows the agent's id at ElevenLabs.
  • Allowed domains only: only pages on the domains you list (up to 10, no wildcards, each subdomain listed on its own). With an empty list, every call is refused.
  • Signed URL: every call needs a short-lived signature, and the embedded widget and the test tab get one for you. Choose this one if you're not sure.

Click Re-sync to ElevenLabs after changing it.

Put it on the phone

Optional

HostWebhook doesn't sell phone numbers. Add or import a number in your ElevenLabs account and assign it to this agent there. The agent has to be active, like on your site.

Read the calls

Every call is kept with its transcript and the tools the agent called. Click the node on the canvas and open Sessions in its panel.

  1. Marker 1: The Sessions tab: this agent's calls.
  2. Marker 2: A call shows up a few minutes after it ends. Refresh brings it in sooner.
  3. Marker 3: Manage sessions opens this agent's calls in Settings → Voice Sessions, where the calls of all your voice agents are.
Sessions tab of a voice agent's panel on the canvas, with no calls yet

The audio stays at ElevenLabs: Load audio on a call plays it from there.

Plans and costs

  • Every plan, Free included, can have voice agents, with no limit on how many.
  • The call minutes are billed by ElevenLabs on your ElevenLabs account.
  • Each step a tool runs in your flow counts toward your plan's weekly events.
  • Calls are kept 30 days on Free, 90 on Starter, 180 on Pro and 360 on Enterprise.

Troubleshooting

What you seeCauseFix
The sync button says Pick provider + credential to syncThe agent has no credential yet.Pick the ElevenLabs credential on the Config tab.
Saving fails with "Voice agents can't use Google tools"A Google node is among its tools or in a flow they run.Remove the nodes it names.
The agent still says your old promptThe change isn't synced.Click Re-sync to ElevenLabs.
The agent talks but can't do anythingThe agent is paused.Click Activate at the top of its page.
The agent says a tool couldn't be doneThe tool didn't run or failed.Look under the agent's node in Monitoring → Logs: it says why.
The agent doesn't use your documentsEnable RAG is off, or the change isn't synced.Turn on Enable RAG on the Knowledge Base tab, then click Re-sync to ElevenLabs.
The agent isn't in the Chat Trigger's Voice agent listIt isn't synced yet.Click Sync to ElevenLabs on the agent, then open the list again.
The embed snippet shows <your-chat-trigger-id>No Chat Trigger uses this agent yet.Pick the agent under Voice mode in a Chat Trigger (step 11), then copy the snippet again.
Calls are refused with Allowed domains onlyThe page's domain isn't on the list.Add it on the Embed tab (each subdomain on its own), then re-sync.
A call isn't in Voice SessionsIt appears a few minutes after it ends.Click Refresh.