/telnyx-import-elevenlabs
Import ElevenLabs conversational AI agents into Telnyx. Preserves instructions, voice settings, tools, and call analysis. Supports all SDK languages.
$ npx -y skills add team-telnyx/ai --skill telnyx-import-elevenlabs --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/telnyx-import-elevenlabs
Context preview
The summary Claude sees to decide when to auto-load this skill.
Import ElevenLabs conversational AI agents into Telnyx. Preserves instructions, voice settings, tools, and call analysis. Supports all SDK languages.
SKILL.md
telnyx-import-elevenlabs.SKILL.mdname: telnyx-import-elevenlabs
description: >-
Import ElevenLabs conversational AI agents into Telnyx. Preserves
instructions, voice settings, tools, and call analysis. Supports
all SDK languages.
user_invocable: true
metadata:
author: telnyx
product: import-elevenlabs
compatibility: "Requires a Telnyx API key and an ElevenLabs API key stored as a Telnyx integration secret."
Import ElevenLabs Agents into Telnyx
Migrate your ElevenLabs conversational AI agents to Telnyx in minutes. The import API pulls agent configurations directly from ElevenLabs using your API key and recreates them as Telnyx AI Assistants.
**Interaction model**: Collect the user's Telnyx API key and ElevenLabs API key, store the ElevenLabs key as a Telnyx integration secret, run the import, then verify. Do NOT skip the secret-creation step — the import endpoint requires a secret reference, not a raw key.
What Gets Imported
| Component | Imported? | Notes | |-----------|-----------|-------| | Instructions | Yes | Imported as-is | | Greeting / first message | Yes | Maps to assistant `greeting` | | Voice configuration | Yes | ElevenLabs voice ID and settings preserved | | Dynamic variables | Yes | Default values carried over | | Tools (hangup, transfer, webhook) | Yes | Tool definitions and configurations | | MCP Server integrations | Yes | Server URLs and tool mappings | | Call analysis / insights | Yes | Mapped to `insight_settings` | | Data retention preferences | Yes | Mapped to `privacy_settings` | | Knowledge base | **No** | Must be manually added post-import | | Secrets (API keys in tools) | **Partial** | Placeholder secrets created — you must re-enter values in the Telnyx portal |
Prerequisites
1. **Telnyx API key** — get one at https://portal.telnyx.com/#/app/api-keys 2. **ElevenLabs API key** — from your ElevenLabs dashboard (Profile → API Keys) 3. Store the ElevenLabs API key as a Telnyx integration secret at https://portal.telnyx.com/#/app/integration-secrets
Step 1: Store Your ElevenLabs API Key as a Telnyx Secret
Before importing, store your ElevenLabs API key as an integration secret in Telnyx. Note the secret reference name (e.g., `elevenlabs_api_key`) — you'll use it in the import call.
You can create integration secrets via the Telnyx Portal under **Integration Secrets**, or via the API.
Step 2: Import All ElevenLabs Agents
Import every conversational AI agent from your ElevenLabs account:
curl
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "elevenlabs",
"api_key_ref": "elevenlabs_api_key"
}' \
"https://api.telnyx.com/v2/ai/assistants/import"Python
import os
from telnyx import Telnyx
client = Telnyx(api_key=os.environ.get("TELNYX_API_KEY"))
assistants = client.ai.assistants.imports(
provider="elevenlabs",
api_key_ref="elevenlabs_api_key",
)
for assistant in assistants.data:
print(f"Imported: {assistant.name} (ID: {assistant.id})")JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx();
const assistants = await client.ai.assistants.imports({
provider: 'elevenlabs',
api_key_ref: 'elevenlabs_api_key',
});
for (const assistant of assistants.data) {
console.log(`Imported: ${assistant.name} (ID: ${assistant.id})`);
}Go
assistants, err := client.AI.Assistants.Imports(context.TODO(), telnyx.AIAssistantImportsParams{
Provider: telnyx.AIAssistantImportsParamsProviderElevenlabs,
APIKeyRef: "elevenlabs_api_key",
})
if err != nil {
panic(err.Error())
}
for _, a := range assistants.Data {
fmt.Printf("Imported: %s (ID: %s)\n", a.Name, a.ID)
}Java
import com.telnyx.sdk.models.ai.assistants.AssistantImportsParams;
import com.telnyx.sdk.models.ai.assistants.AssistantsList;
AssistantImportsParams params = AssistantImportsParams.builder()
.provider(AssistantImportsParams.Provider.ELEVENLABS)
.apiKeyRef("elevenlabs_api_key")
.build();
AssistantsList assistants = client.ai().assistants().imports(params);
assistants.getData().forEach(a ->
System.out.printf("Imported: %s (ID: %s)%n", a.getName(), a.getId()));Ruby
assistants = client.ai.assistants.imports(
provider: :elevenlabs,
api_key_ref: "elevenlabs_api_key"
)
assistants.data.each do |a|
puts "Imported: #{a.name} (ID: #{a.id})"
endStep 2 (Alternative): Import Specific Agents
To import only certain agents, pass their ElevenLabs agent IDs in `import_ids`:
curl
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "elevenlabs",
"api_key_ref": "elevenlabs_api_key",
"import_ids": ["elevenlabs-agent-id-1", "elevenlabs-agent-id-2"]
}' \
"https://api.telnyx.com/v2/ai/assistants/import"Python
assistants = client.ai.assistants.imports(
provider="elevenlabs",
api_key_ref="elevenlabs_api_key",
import_ids=["elevenlabs-agent-id-1", "elevenlabs-agent-id-2"],
)JavaScript
const assistants = await client.ai.assistants.imports({
provider: 'elevenlabs',
api_key_ref: 'elevenlabs_api_key',
import_ids: ['elevenlabs-agent-id-1', 'elevenlabs-agent-id-2'],
});Step 3: Verify the Import
List your Telnyx assistants to confirm the import succeeded:
curl
curl -H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/ai/assistants"
Python
assistants = client.ai.assistants.list()
for a in assistants.data:
print(f"{a.name} — {a.id} — imported: {a.import_metadata}")JavaScript
const assistants = await client.ai.assistants.list();
for (const a of assistants.data) {
console.log(`${a.name} — ${a.id} — imported:`, a.import_metadata);
}Step 4: Post-Import Checklist
After importing, complete these manual steps:
1. **Re-enter secrets**
Read more
name: telnyx-import-elevenlabs description: >- Import ElevenLabs conversational AI agents into Telnyx. Preserves instructions, voice settings, tools, and call analysis. Supports all SDK languages. user_invocable: true metadata: author: telnyx product: import-elevenlabs compatibility: "Requires a Telnyx API key and an ElevenLabs API key stored as a Telnyx integration secret."
Import ElevenLabs Agents into Telnyx
Migrate your ElevenLabs conversational AI agents to Telnyx in minutes. The import API pulls agent configurations directly from ElevenLabs using your API key and recreates them as Telnyx AI Assistants.
**Interaction model**: Collect the user's Telnyx API key and ElevenLabs API key, store the ElevenLabs key as a Telnyx integration secret, run the import, then verify. Do NOT skip the secret-creation step — the import endpoint requires a secret reference, not a raw key.
What Gets Imported
| Component | Imported? | Notes | |-----------|-----------|-------| | Instructions | Yes | Imported as-is | | Greeting / first message | Yes | Maps to assistant `greeting` | | Voice configuration | Yes | ElevenLabs voice ID and settings preserved | | Dynamic variables | Yes | Default values carried over | | Tools (hangup, transfer, webhook) | Yes | Tool definitions and configurations | | MCP Server integrations | Yes | Server URLs and tool mappings | | Call analysis / insights | Yes | Mapped to `insight_settings` | | Data retention preferences | Yes | Mapped to `privacy_settings` | | Knowledge base | **No** | Must be manually added post-import | | Secrets (API keys in tools) | **Partial** | Placeholder secrets created — you must re-enter values in the Telnyx portal |
Prerequisites
1. **Telnyx API key** — get one at https://portal.telnyx.com/#/app/api-keys 2. **ElevenLabs API key** — from your ElevenLabs dashboard (Profile → API Keys) 3. Store the ElevenLabs API key as a Telnyx integration secret at https://portal.telnyx.com/#/app/integration-secrets
Step 1: Store Your ElevenLabs API Key as a Telnyx Secret
Before importing, store your ElevenLabs API key as an integration secret in Telnyx. Note the secret reference name (e.g., `elevenlabs_api_key`) — you'll use it in the import call.
You can create integration secrets via the Telnyx Portal under **Integration Secrets**, or via the API.
Step 2: Import All ElevenLabs Agents
Import every conversational AI agent from your ElevenLabs account:
curl
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "elevenlabs",
"api_key_ref": "elevenlabs_api_key"
}' \
"https://api.telnyx.com/v2/ai/assistants/import"Python
import os
from telnyx import Telnyx
client = Telnyx(api_key=os.environ.get("TELNYX_API_KEY"))
assistants = client.ai.assistants.imports(
provider="elevenlabs",
api_key_ref="elevenlabs_api_key",
)
for assistant in assistants.data:
print(f"Imported: {assistant.name} (ID: {assistant.id})")JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx();
const assistants = await client.ai.assistants.imports({
provider: 'elevenlabs',
api_key_ref: 'elevenlabs_api_key',
});
for (const assistant of assistants.data) {
console.log(`Imported: ${assistant.name} (ID: ${assistant.id})`);
}Go
assistants, err := client.AI.Assistants.Imports(context.TODO(), telnyx.AIAssistantImportsParams{
Provider: telnyx.AIAssistantImportsParamsProviderElevenlabs,
APIKeyRef: "elevenlabs_api_key",
})
if err != nil {
panic(err.Error())
}
for _, a := range assistants.Data {
fmt.Printf("Imported: %s (ID: %s)\n", a.Name, a.ID)
}Java
import com.telnyx.sdk.models.ai.assistants.AssistantImportsParams;
import com.telnyx.sdk.models.ai.assistants.AssistantsList;
AssistantImportsParams params = AssistantImportsParams.builder()
.provider(AssistantImportsParams.Provider.ELEVENLABS)
.apiKeyRef("elevenlabs_api_key")
.build();
AssistantsList assistants = client.ai().assistants().imports(params);
assistants.getData().forEach(a ->
System.out.printf("Imported: %s (ID: %s)%n", a.getName(), a.getId()));Ruby
assistants = client.ai.assistants.imports(
provider: :elevenlabs,
api_key_ref: "elevenlabs_api_key"
)
assistants.data.each do |a|
puts "Imported: #{a.name} (ID: #{a.id})"
endStep 2 (Alternative): Import Specific Agents
To import only certain agents, pass their ElevenLabs agent IDs in `import_ids`:
curl
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "elevenlabs",
"api_key_ref": "elevenlabs_api_key",
"import_ids": ["elevenlabs-agent-id-1", "elevenlabs-agent-id-2"]
}' \
"https://api.telnyx.com/v2/ai/assistants/import"Python
assistants = client.ai.assistants.imports(
provider="elevenlabs",
api_key_ref="elevenlabs_api_key",
import_ids=["elevenlabs-agent-id-1", "elevenlabs-agent-id-2"],
)JavaScript
const assistants = await client.ai.assistants.imports({
provider: 'elevenlabs',
api_key_ref: 'elevenlabs_api_key',
import_ids: ['elevenlabs-agent-id-1', 'elevenlabs-agent-id-2'],
});Step 3: Verify the Import
List your Telnyx assistants to confirm the import succeeded:
curl
curl -H "Authorization: Bearer $TELNYX_API_KEY" \ "https://api.telnyx.com/v2/ai/assistants"
Python
assistants = client.ai.assistants.list()
for a in assistants.data:
print(f"{a.name} — {a.id} — imported: {a.import_metadata}")JavaScript
const assistants = await client.ai.assistants.list();
for (const a of assistants.data) {
console.log(`${a.name} — ${a.id} — imported:`, a.import_metadata);
}Step 4: Post-Import Checklist
After importing, complete these manual steps:
1. **Re-enter secrets**
This repo is the one-stop shop for AI Agents and AI-first developers building with Telnyx — everything an agent needs to build production-grade applications and manage its account, from signup to funding.
Repo: team-telnyx/ai
Other skills on team-telnyx-ai.
- /telnyx-ai-assistants-curl
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-go
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-java
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-javascript
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-python
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill - /telnyx-ai-assistants-ruby
AI voice assistants with custom instructions, knowledge bases, and tool integrations.
Open skill

