! Andrii - AI Engineer
09/30/2025, 12:08 AM! Andrii - AI Engineer
09/30/2025, 12:08 AMColin - Integrations @ Retell AI
09/30/2025, 12:09 AM! Andrii - AI Engineer
09/30/2025, 12:09 AM! Andrii - AI Engineer
09/30/2025, 12:10 AM! Andrii - AI Engineer
09/30/2025, 12:10 AMconst callParams = {
to_number: opts.to_number || opts.customer_number,
from_number: opts.from_number || env.RETELL_FROM_NUMBER,
agent_id: opts.agent_id,
retell_llm_dynamic_variables: opts.retell_llm_dynamic_variables || {}
};
// Add metadata if provided
if (opts.metadata) {
callParams.metadata = opts.metadata;
}
const r = await client.call.createPhoneCall(callParams);! Andrii - AI Engineer
09/30/2025, 12:11 AM! Andrii - AI Engineer
09/30/2025, 12:12 AM! Andrii - AI Engineer
09/30/2025, 12:12 AM! Andrii - AI Engineer
09/30/2025, 12:12 AM! Andrii - AI Engineer
09/30/2025, 12:12 AMColin - Integrations @ Retell AI
09/30/2025, 12:18 AMColin - Integrations @ Retell AI
09/30/2025, 12:19 AMColin - Integrations @ Retell AI
09/30/2025, 12:19 AMColin - Integrations @ Retell AI
09/30/2025, 12:20 AMlua
from retell import Retell
client = Retell(
api_key="YOUR_RETELL_API_KEY",
)
phone_call_response = client.call.create_phone_call(
from_number="+14157774444",
to_number="+12137774445",
)
print(phone_call_response.agent_id)Colin - Integrations @ Retell AI
09/30/2025, 12:20 AM