Skip to main content

Eleven Labs Bubble

Eleven Labs integration for Conversational AI

Quick Start

import { ElevenLabsBubble } from '@bubblelab/bubble-core';
import { CredentialType } from '@bubblelab/shared-schemas';
const result = await new ElevenLabsBubble({
operation: 'get_signed_url',
credentials: {
[CredentialType.ELEVENLABS_API_KEY]: process.env.ELEVENLABS_API_KEY as string,
},
}).action();

Operation Details

get_signed_url

operation 'get_signed_url' required
Get a signed URL for authenticated WebSocket connection
agentId string required
The ID of the agent to connect to
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)

trigger_outbound_call

operation 'trigger_outbound_call' required
Trigger an outbound call to a phone number
agentId string required
The ID of the agent to use for the call
toPhoneNumber string required
The phone number to call (E.164 format)
phoneNumberId string
The ID of the phone number to call from (optional)
variables Record<string,string>
Dynamic variables to pass to the agent
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)

get_agent

operation 'get_agent' required
Get details about an agent
agentId string required
The ID of the agent to retrieve
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)

validate_webhook_signature

operation 'validate_webhook_signature' required
Validate a webhook signature from Eleven Labs
signature string required
The signature header from the webhook request
timestamp string required
The timestamp header from the webhook request
body string required
The raw body of the webhook request
webhookSecret string required
The webhook secret to validate against
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)

get_conversation

operation 'get_conversation' required
Get details of a specific conversation
conversationId string required
The ID of the conversation to retrieve
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)

get_conversations

operation 'get_conversations' required
Get a list of conversations
agentId string
Filter conversations by agent ID
pageSize number
Number of conversations to return (default: 30)
cursor string
Cursor for pagination
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)