Import an agent from Retell
curl --request POST \
--url https://guidinghand.ai/v1/imports/retell \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "agent_8c1f0e3a2b",
"api_key": "<string>",
"secret": "<string>",
"folder_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 'agent_8c1f0e3a2b',
api_key: '<string>',
secret: '<string>',
folder_id: '<string>'
})
};
fetch('https://guidinghand.ai/v1/imports/retell', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/imports/retell"
payload = {
"agent_id": "agent_8c1f0e3a2b",
"api_key": "<string>",
"secret": "<string>",
"folder_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "import",
"platform": "retell",
"retell_agent_id": "<string>",
"agent_id": "<string>",
"name": "<string>",
"tools": 123,
"procedures": 123,
"files": 123,
"notes": [
"<string>"
],
"conversation_id": "<string>"
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Agents
Import an agent from Retell
Makes an Eager agent (version 1) from a Retell agent: a single-prompt agent’s prompt becomes its instructions; a multi-prompt agent’s states, or a Conversation Flow’s nodes, become a procedure written as numbered steps (a global node, a procedure of its own); its custom functions become HTTP tools (envelope: "retell") whose keys are saved as secrets; its MCP servers come along; its knowledge base’s texts and documents become files under /knowledge; its first message, language, ElevenLabs voice when Eager has it, and post-call analysis (as what it does after a call). What has no match is in notes, and in Coach’s first message to whoever imported it. Importing the same agent again makes another agent. Needs the admin role or an API key.
POST
/
v1
/
imports
/
retell
Import an agent from Retell
curl --request POST \
--url https://guidinghand.ai/v1/imports/retell \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "agent_8c1f0e3a2b",
"api_key": "<string>",
"secret": "<string>",
"folder_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 'agent_8c1f0e3a2b',
api_key: '<string>',
secret: '<string>',
folder_id: '<string>'
})
};
fetch('https://guidinghand.ai/v1/imports/retell', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/imports/retell"
payload = {
"agent_id": "agent_8c1f0e3a2b",
"api_key": "<string>",
"secret": "<string>",
"folder_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "import",
"platform": "retell",
"retell_agent_id": "<string>",
"agent_id": "<string>",
"name": "<string>",
"tools": 123,
"procedures": 123,
"files": 123,
"notes": [
"<string>"
],
"conversation_id": "<string>"
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Authorizations
Body
application/json
Response
OK