owenmecham_16942
07/30/2025, 1:49 AMAI Evy
07/30/2025, 1:49 AMAI Evy
07/30/2025, 1:50 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
}) ;
[(2) ]()
For the LLM Response Engine, you can include Cal.com booking tools with the API key in the tool configuration:
javascript
const llmResponse = await client.llm.update('16b980523634a6dc504898cda492e939', {
begin_message: 'Hey I am a virtual assistant calling from Retell Hospital.',
}) ;
[(1) ]()
The Cal.com tool configuration includes the cal_api_key field where you specify your Cal.com API key . This tool can be added to either the general_tools array or within specific states tools array when updating your Retell LLM Response Engine .
The workflow is: first create or update your Retell LLM Response Engine with the Cal.com tool configuration including your API key, then create an agent that uses that LLM Response Engine [(2) ]() .AI Evy
07/30/2025, 1:50 AMAI Evy
07/30/2025, 1:50 AM