{"id":"08eeda5f-1e8b-4dd7-b0be-0c23642352f3","shortId":"BFYCpa","kind":"skill","title":"telnyx-import-retell","tagline":">-","description":"# Import Retell Agents into Telnyx\n\nMigrate your Retell AI agents to Telnyx in minutes. The import API pulls agent configurations directly from Retell using your API key and recreates them as Telnyx AI Assistants. Both single-prompt and multi-prompt Retell agents are supported.\n\n**Interaction model**: Collect the user's Telnyx API key and Retell API key, store the Retell 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.\n\n## What Gets Imported\n\n| Component | Imported? | Notes |\n|-----------|-----------|-------|\n| Instructions | Yes | Imported as-is (both single and multi-prompt) |\n| Greeting / first message | Yes | Maps to assistant `greeting` |\n| Voice configuration | Yes | Voice provider and voice ID preserved |\n| Dynamic variables | Yes | Default values carried over |\n| Tools (hangup, transfer, webhook) | Yes | Tool definitions and configurations |\n| MCP Server integrations | Yes | Server URLs and tool mappings |\n| Call analysis / insights | Yes | Mapped to `insight_settings` |\n| Data retention preferences | Yes | Mapped to `privacy_settings` |\n| Knowledge base | **No** | Must be manually added post-import |\n| Secrets (API keys in tools) | **Partial** | Placeholder secrets created — you must re-enter values in the Telnyx portal |\n\n## Prerequisites\n\n1. **Telnyx API key** — get one at https://portal.telnyx.com/#/app/api-keys\n2. **Retell API key** — from your Retell dashboard\n3. Store the Retell API key as a Telnyx integration secret at https://portal.telnyx.com/#/app/integration-secrets\n\n## Step 1: Store Your Retell API Key as a Telnyx Secret\n\nBefore importing, store your Retell API key as an integration secret in Telnyx. Note the secret reference name (e.g., `retell_api_key`) — you'll use it in the import call.\n\nYou can create integration secrets via the Telnyx Portal under **Integration Secrets**, or via the API.\n\n## Step 2: Import All Retell Agents\n\nImport every agent from your Retell account:\n\n### curl\n\n```bash\ncurl \\\n  -X POST \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"provider\": \"retell\",\n  \"api_key_ref\": \"retell_api_key\"\n}' \\\n  \"https://api.telnyx.com/v2/ai/assistants/import\"\n```\n\n### Python\n\n```python\nimport os\nfrom telnyx import Telnyx\n\nclient = Telnyx(api_key=os.environ.get(\"TELNYX_API_KEY\"))\n\nassistants = client.ai.assistants.imports(\n    provider=\"retell\",\n    api_key_ref=\"retell_api_key\",\n)\n\nfor assistant in assistants.data:\n    print(f\"Imported: {assistant.name} (ID: {assistant.id})\")\n```\n\n### JavaScript\n\n```javascript\nimport Telnyx from 'telnyx';\n\nconst client = new Telnyx();\n\nconst assistants = await client.ai.assistants.imports({\n  provider: 'retell',\n  api_key_ref: 'retell_api_key',\n});\n\nfor (const assistant of assistants.data) {\n  console.log(`Imported: ${assistant.name} (ID: ${assistant.id})`);\n}\n```\n\n### Go\n\n```go\nassistants, err := client.AI.Assistants.Imports(context.TODO(), telnyx.AIAssistantImportsParams{\n    Provider:  telnyx.AIAssistantImportsParamsProviderRetell,\n    APIKeyRef: \"retell_api_key\",\n})\nif err != nil {\n    panic(err.Error())\n}\nfor _, a := range assistants.Data {\n    fmt.Printf(\"Imported: %s (ID: %s)\\n\", a.Name, a.ID)\n}\n```\n\n### Java\n\n```java\nimport com.telnyx.sdk.models.ai.assistants.AssistantImportsParams;\nimport com.telnyx.sdk.models.ai.assistants.AssistantsList;\n\nAssistantImportsParams params = AssistantImportsParams.builder()\n    .provider(AssistantImportsParams.Provider.RETELL)\n    .apiKeyRef(\"retell_api_key\")\n    .build();\nAssistantsList assistants = client.ai().assistants().imports(params);\nassistants.getData().forEach(a ->\n    System.out.printf(\"Imported: %s (ID: %s)%n\", a.getName(), a.getId()));\n```\n\n### Ruby\n\n```ruby\nassistants = client.ai.assistants.imports(\n  provider: :retell,\n  api_key_ref: \"retell_api_key\"\n)\n\nassistants.data.each do |a|\n  puts \"Imported: #{a.name} (ID: #{a.id})\"\nend\n```\n\n## Step 2 (Alternative): Import Specific Agents\n\nTo import only certain agents, pass their Retell agent IDs in `import_ids`:\n\n### curl\n\n```bash\ncurl \\\n  -X POST \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"provider\": \"retell\",\n  \"api_key_ref\": \"retell_api_key\",\n  \"import_ids\": [\"retell-agent-id-1\", \"retell-agent-id-2\"]\n}' \\\n  \"https://api.telnyx.com/v2/ai/assistants/import\"\n```\n\n### Python\n\n```python\nassistants = client.ai.assistants.imports(\n    provider=\"retell\",\n    api_key_ref=\"retell_api_key\",\n    import_ids=[\"retell-agent-id-1\", \"retell-agent-id-2\"],\n)\n```\n\n### JavaScript\n\n```javascript\nconst assistants = await client.ai.assistants.imports({\n  provider: 'retell',\n  api_key_ref: 'retell_api_key',\n  import_ids: ['retell-agent-id-1', 'retell-agent-id-2'],\n});\n```\n\n## Step 3: Verify the Import\n\nList your Telnyx assistants to confirm the import succeeded:\n\n### curl\n\n```bash\ncurl -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  \"https://api.telnyx.com/v2/ai/assistants\"\n```\n\n### Python\n\n```python\nassistants = client.ai.assistants.list()\nfor a in assistants.data:\n    print(f\"{a.name} — {a.id} — imported: {a.import_metadata}\")\n```\n\n### JavaScript\n\n```javascript\nconst assistants = await client.ai.assistants.list();\nfor (const a of assistants.data) {\n  console.log(`${a.name} — ${a.id} — imported:`, a.import_metadata);\n}\n```\n\n## Step 4: Post-Import Checklist\n\nAfter importing, complete these manual steps:\n\n1. **Re-enter secrets** — Any API keys referenced by tools were imported as placeholders. Go to https://portal.telnyx.com/#/app/integration-secrets and supply the actual values.\n2. **Add knowledge bases** — Knowledge base content is not imported. Upload files or add URLs in the assistant's Knowledge Base settings.\n3. **Assign a phone number** — Connect a Telnyx phone number to your imported assistant to start receiving calls.\n4. **Test the assistant** — Use the Telnyx assistant testing API or make a test call to verify behavior.\n\n## Re-importing\n\nRunning the import again for the same Retell agents will **overwrite** the existing Telnyx copies with the latest configuration from Retell. This is useful for syncing changes during a gradual migration.\n\n## API Reference\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `provider` | string | Yes | Must be `\"retell\"` |\n| `api_key_ref` | string | Yes | Name of the Telnyx integration secret containing your Retell API key |\n| `import_ids` | array[string] | No | Specific Retell agent IDs to import. Omit to import all. |\n\nEndpoint: `POST https://api.telnyx.com/v2/ai/assistants/import`\n\nFull API docs: https://developers.telnyx.com/api-reference/assistants/import-assistants-from-external-provider","tags":["telnyx","import","retell","team-telnyx","agent-skills","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk"],"capabilities":["skill","source-team-telnyx","skill-telnyx-import-retell","topic-agent-skills","topic-ai-coding-agent","topic-claude-code","topic-cpaas","topic-cursor","topic-iot","topic-llm","topic-sdk","topic-sip","topic-sms","topic-speech-to-text","topic-telephony"],"categories":["ai"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/team-telnyx/ai/telnyx-import-retell","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add team-telnyx/ai","source_repo":"https://github.com/team-telnyx/ai","install_from":"skills.sh"}},"qualityScore":"0.533","qualityRationale":"deterministic score 0.53 from registry signals: · indexed on github topic:agent-skills · 167 github stars · SKILL.md body (6,751 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T12:54:45.734Z","embedding":null,"createdAt":"2026-04-18T22:06:30.313Z","updatedAt":"2026-04-22T12:54:45.734Z","lastSeenAt":"2026-04-22T12:54:45.734Z","tsv":"'/#/app/api-keys':212 '/#/app/integration-secrets':235,684 '/api-reference/assistants/import-assistants-from-external-provider':835 '/v2/ai/assistants':620 '/v2/ai/assistants/import':333,544,829 '1':203,237,536,563,589,665 '2':213,294,487,541,568,594,690 '3':221,596,712 '4':654,730 'a.getid':464 'a.getname':463 'a.id':431,484,632,649 'a.import':634,651 'a.name':430,482,631,648 'account':305 'actual':688 'ad':179 'add':691,703 'agent':7,14,23,48,298,301,491,496,500,534,539,561,566,587,592,759,817 'ai':13,37 'altern':488 'analysi':158 'api':21,30,58,62,184,205,215,225,241,252,267,292,315,325,329,344,348,354,358,386,390,413,445,471,475,514,524,528,551,555,577,581,616,671,739,782,794,808,831 'api.telnyx.com':332,543,619,828 'api.telnyx.com/v2/ai/assistants':618 'api.telnyx.com/v2/ai/assistants/import':331,542,827 'apikeyref':411,443 'application/json':321,520 'array':812 'as-i':106 'assign':713 'assist':38,121,350,361,381,394,404,449,451,467,547,572,603,623,639,707,725,733,737 'assistant.id':369,401 'assistant.name':367,399 'assistantimportsparam':438 'assistantimportsparams.builder':440 'assistantimportsparams.provider.retell':442 'assistants.data':363,396,423,628,646 'assistants.data.each':477 'assistants.getdata':454 'assistantslist':448 'author':312,511,613 'await':382,573,640 'base':174,693,695,710 'bash':307,506,610 'bearer':313,512,614 'behavior':747 'build':447 'call':157,276,729,744 'carri':137 'certain':495 'chang':777 'checklist':658 'client':342,377 'client.ai':450 'client.ai.assistants.imports':351,383,406,468,548,574 'client.ai.assistants.list':624,641 'collect':53 'com.telnyx.sdk.models.ai.assistants.assistantimportsparams':435 'com.telnyx.sdk.models.ai.assistants.assistantslist':437 'complet':661 'compon':100 'configur':24,124,147,769 'confirm':605 'connect':717 'console.log':397,647 'const':376,380,393,571,638,643 'contain':805 'content':319,518,696 'content-typ':318,517 'context.todo':407 'copi':765 'creat':191,279 'creation':84 'curl':306,308,505,507,609,611 'd':322,521 'dashboard':220 'data':165 'default':135 'definit':145 'descript':787 'developers.telnyx.com':834 'developers.telnyx.com/api-reference/assistants/import-assistants-from-external-provider':833 'direct':25 'doc':832 'dynam':132 'e.g':265 'end':485 'endpoint':88,825 'enter':196,668 'err':405,416 'err.error':419 'everi':300 'exist':763 'f':365,630 'field':784 'file':701 'first':116 'fmt.printf':424 'foreach':455 'full':830 'get':98,207 'go':402,403,680 'gradual':780 'greet':115,122 'h':311,317,510,516,612 'hangup':140 'id':130,368,400,427,460,483,501,504,531,535,540,558,562,567,584,588,593,811,818 'import':3,5,20,75,87,99,101,105,182,248,275,295,299,336,340,366,372,398,425,434,436,452,458,481,489,493,503,530,557,583,599,607,633,650,657,660,677,699,724,750,753,810,820,823 'insight':159,163 'instruct':103 'integr':71,150,230,256,280,287,803 'interact':51 'java':432,433 'javascript':370,371,569,570,636,637 'key':31,59,63,67,96,185,206,216,226,242,253,268,316,326,330,345,349,355,359,387,391,414,446,472,476,515,525,529,552,556,578,582,617,672,795,809 'knowledg':173,692,694,709 'latest':768 'list':600 'll':270 'make':741 'manual':178,663 'map':119,156,161,169 'mcp':148 'messag':117 'metadata':635,652 'migrat':10,781 'minut':18 'model':52 'multi':45,113 'multi-prompt':44,112 'must':176,193,791 'n':429,462 'name':264,799 'new':378 'nil':417 'note':102,260 'number':716,721 'omit':821 'one':208 'os':337 'os.environ.get':346 'overwrit':761 'panic':418 'param':439,453 'partial':188 'pass':497 'phone':715,720 'placehold':189,679 'portal':201,285 'portal.telnyx.com':211,234,683 'portal.telnyx.com/#/app/api-keys':210 'portal.telnyx.com/#/app/integration-secrets':233,682 'post':181,310,509,656,826 'post-import':180,655 'prefer':167 'prerequisit':202 'preserv':131 'print':364,629 'privaci':171 'prompt':42,46,114 'provid':127,323,352,384,409,441,469,522,549,575,788 'pull':22 'put':480 'python':334,335,545,546,621,622 'rang':422 'raw':95 're':195,667,749 're-ent':194,666 're-import':748 'receiv':728 'recreat':33 'ref':327,356,388,473,526,553,579,796 'refer':92,263,783 'referenc':673 'requir':89,786 'retel':4,6,12,27,47,61,66,214,219,224,240,251,266,297,304,324,328,353,357,385,389,412,444,470,474,499,523,527,533,538,550,554,560,565,576,580,586,591,758,771,793,807,816 'retell-agent-id':532,537,559,564,585,590 'retent':166 'rubi':465,466 'run':73,751 'secret':72,83,91,183,190,231,246,257,262,281,288,669,804 'secret-cr':82 'server':149,152 'set':164,172,711 'singl':41,110 'single-prompt':40 'skill' 'skill-telnyx-import-retell' 'skip':80 'source-team-telnyx' 'specif':490,815 'start':727 'step':85,236,293,486,595,653,664 'store':64,222,238,249 'string':789,797,813 'succeed':608 'suppli':686 'support':50 'sync':776 'system.out.printf':457 'telnyx':2,9,16,36,57,70,200,204,229,245,259,284,314,339,341,343,347,373,375,379,513,602,615,719,736,764,802 'telnyx-import-retel':1 'telnyx.aiassistantimportsparams':408 'telnyx.aiassistantimportsparamsproviderretell':410 'test':731,738,743 'tool':139,144,155,187,675 'topic-agent-skills' 'topic-ai-coding-agent' 'topic-claude-code' 'topic-cpaas' 'topic-cursor' 'topic-iot' 'topic-llm' 'topic-sdk' 'topic-sip' 'topic-sms' 'topic-speech-to-text' 'topic-telephony' 'transfer':141 'type':320,519,785 'upload':700 'url':153,704 'use':28,271,734,774 'user':55 'valu':136,197,689 'variabl':133 'verifi':77,597,746 'via':282,290 'voic':123,126,129 'webhook':142 'x':309,508 'yes':104,118,125,134,143,151,160,168,790,798","prices":[{"id":"52c39141-afde-4cad-8a76-272c1ee294a6","listingId":"08eeda5f-1e8b-4dd7-b0be-0c23642352f3","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"team-telnyx","category":"ai","install_from":"skills.sh"},"createdAt":"2026-04-18T22:06:30.313Z"}],"sources":[{"listingId":"08eeda5f-1e8b-4dd7-b0be-0c23642352f3","source":"github","sourceId":"team-telnyx/ai/telnyx-import-retell","sourceUrl":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-import-retell","isPrimary":false,"firstSeenAt":"2026-04-18T22:06:30.313Z","lastSeenAt":"2026-04-22T12:54:45.734Z"}],"details":{"listingId":"08eeda5f-1e8b-4dd7-b0be-0c23642352f3","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"team-telnyx","slug":"telnyx-import-retell","github":{"repo":"team-telnyx/ai","stars":167,"topics":["agent-skills","ai","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk","sip","sms","speech-to-text","telephony","telnyx","tts","twilio-migration","voice-agents","voice-ai","webrtc","windsurf"],"license":"mit","html_url":"https://github.com/team-telnyx/ai","pushed_at":"2026-04-21T22:09:49Z","description":"Official one-stop shop for AI Agents and developers building with Telnyx.","skill_md_sha":"408522d8b1d1b8bc93046f1006479a9fd85f5eb8","skill_md_path":"skills/telnyx-import-retell/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-import-retell"},"layout":"multi","source":"github","category":"ai","frontmatter":{"name":"telnyx-import-retell","description":">-"},"skills_sh_url":"https://skills.sh/team-telnyx/ai/telnyx-import-retell"},"updatedAt":"2026-04-22T12:54:45.734Z"}}