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
- Input Schema
- Output Schema
operation'get_signed_url' required- Get a signed URL for authenticated WebSocket connection
agentIdstring required- The ID of the agent to connect to
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'get_signed_url' requiredsignedUrlstring- The signed URL for WebSocket connection
successboolean required- Whether the operation was successful
errorstring required- Error message if the operation failed
trigger_outbound_call
- Input Schema
- Output Schema
operation'trigger_outbound_call' required- Trigger an outbound call to a phone number
agentIdstring required- The ID of the agent to use for the call
toPhoneNumberstring required- The phone number to call (E.164 format)
phoneNumberIdstring- The ID of the phone number to call from (optional)
variablesRecord<string,string>- Dynamic variables to pass to the agent
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'trigger_outbound_call' requiredcallSidstring- The unique identifier for the call
conversationIdstring- The unique identifier for the conversation
successboolean required- Whether the operation was successful
errorstring required- Error message if the operation failed
get_agent
- Input Schema
- Output Schema
operation'get_agent' required- Get details about an agent
agentIdstring required- The ID of the agent to retrieve
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'get_agent' requiredagentRecord<string,unknown>- The agent details
successboolean required- Whether the operation was successful
errorstring required- Error message if the operation failed
validate_webhook_signature
- Input Schema
- Output Schema
operation'validate_webhook_signature' required- Validate a webhook signature from Eleven Labs
signaturestring required- The signature header from the webhook request
timestampstring required- The timestamp header from the webhook request
bodystring required- The raw body of the webhook request
webhookSecretstring required- The webhook secret to validate against
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'validate_webhook_signature' requiredisValidboolean required- Whether the signature is valid
successboolean required- Whether the operation was successful
errorstring required- Error message if the operation failed
get_conversation
- Input Schema
- Output Schema
operation'get_conversation' required- Get details of a specific conversation
conversationIdstring required- The ID of the conversation to retrieve
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'get_conversation' requiredconversationRecord<string,unknown>- The conversation details
successboolean required- Whether the operation was successful
errorstring required- Error message if the operation failed
get_conversations
- Input Schema
- Output Schema
operation'get_conversations' required- Get a list of conversations
agentIdstring- Filter conversations by agent ID
pageSizenumber- Number of conversations to return (default: 30)
cursorstring- Cursor for pagination
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'get_conversations' requiredconversationsRecord<string,unknown>[]- List of conversations
hasMoreboolean- Whether there are more conversations to retrieve
nextCursorstring- Cursor for the next page of results
successboolean required- Whether the operation was successful
errorstring required- Error message if the operation failed