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.
- Marker 1: Type
ElevenLabsin the search box and pick it. - Marker 2: Credential Name is only for you. Use a name you'll recognize on the voice agent, such as “ElevenLabs”.
- Marker 3: API Key: paste the key from step 1. It's encrypted at rest.
- Marker 4: The same permissions as step 1, in case you need them again.
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.
- Marker 1: The node palette. Click + in the top-left corner of the canvas to open it.
- Marker 2: Voice Agent is the last entry 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.
- Marker 1: The Config tab.
- Marker 2: Provider: ElevenLabs.
- Marker 3: Credential: the ElevenLabs credential from step 2.
- Marker 4: Already have an agent in ElevenLabs? Import your agent brings its configuration in instead of typing it all again.
- Marker 5: LLM provider: the model behind the conversation. Pick the model right below it.
Scroll down the same tab to tell the agent who it is and how it sounds.
- 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.
- 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.
- 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).
- Marker 4: Voice: the selected voice. Pick another from the list below, and press play to hear it first.
Give it tools
Open the Tools tab.
- Marker 1: The Tools tab.
- Marker 2: Under Add tools from, pick where the tools come from (see below).
- 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.
- 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
OptionalA 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).
- Marker 1: The Knowledge Base tab.
- Marker 2: Upload files: drop files on the box, or click browse.
- Marker 3: Or select vector store: pick one or more of your stores. Each one shows as a tag below the list.
- Marker 4: Enable RAG: off by default. Turn it on, or the agent ignores the files and stores above.
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.
- Marker 1: Concurrent conversations: how many calls can run at the same time.
-1means no limit. - Marker 2: Conversations per day: a hard daily cap. It's the cheapest insurance against a loop that keeps calling all night.
- 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.
- 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.
Sync it to ElevenLabs
Open the Sync & Webhook tab. Until you sync, nothing you set here exists at ElevenLabs.
- Marker 1: The Sync & Webhook tab.
- Marker 2: Provider sync says unsynced: the agent doesn't exist at ElevenLabs yet.
- Marker 3: Click Sync to ElevenLabs. It saves any unsaved change first.
When it's done, the agent shows as synced.
- Marker 1: synced, with the time of the last sync and the agent's id at ElevenLabs.
- 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.
- Marker 3: Test agent appears once the agent is synced (step 9).
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.
- Marker 1: The Voice Agent node. Click it to open its panel.
- Marker 2: The Test call tab.
- Marker 3: Tap the microphone to start the call. Nothing starts until you do.
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.
- Marker 1: The Widget tab.
- Marker 2: How the widget looks: color, display name, mode, position and theme (see below).
- Marker 3: Live preview: the real widget, with your settings.
- 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.
- Open the Chat Trigger your site will use. If you don't have one yet, follow Build a chatbot with a Chat Trigger first.
- Open its Advanced tab and scroll to Voice mode.
- In the Voice agent list, pick this agent. Provider and Agent id fill in below it.
- To turn voice off later, pick Disabled (no voice mode).
- Marker 1: Voice agent: pick this agent. Only synced agents are in the list.
- Marker 2: Provider and Agent id fill in once you pick it.
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.
- Marker 1: The Source switch: Manual or 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.
| Snippet | Use it when |
|---|---|
| HTML — single script tag | Any website. Paste it before </body>. It always loads the latest widget version, so you never need to update it. |
| React — npm package | A React or Next.js app. Run npm install @hostwebhook/voice-widget first. |
- Marker 1: The Embed tab.
- Marker 2: Access & security: who can start a call at ElevenLabs (see below). Here Signed URL is selected.
- Marker 3: Copy copies the HTML snippet, with your Chat Trigger's id already in it.
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.
<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
OptionalHostWebhook 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.
- Marker 1: The Sessions tab: this agent's calls.
- Marker 2: A call shows up a few minutes after it ends. Refresh brings it in sooner.
- Marker 3: Manage sessions opens this agent's calls in Settings → Voice Sessions, where the calls of all your voice agents are.
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 see | Cause | Fix |
|---|---|---|
| The sync button says Pick provider + credential to sync | The 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 prompt | The change isn't synced. | Click Re-sync to ElevenLabs. |
| The agent talks but can't do anything | The agent is paused. | Click Activate at the top of its page. |
| The agent says a tool couldn't be done | The tool didn't run or failed. | Look under the agent's node in Monitoring → Logs: it says why. |
| The agent doesn't use your documents | Enable 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 list | It 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 only | The 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 Sessions | It appears a few minutes after it ends. | Click Refresh. |