Before you start
- API access enabled, with a key from Settings → Developer API.
- An outbound agent and its agent ID.
- A phone line UUID from Settings → Phone Numbers & Telephony.
- This docs site open so you can
@-mention pages or paste the Make a call request into the chat.
1. Keep secrets out of the repo
Create a.env (and add .env to .gitignore):
2. Ask Cursor to build the client
Open Agent mode and paste a prompt like this (keep your real key out of the prompt — tell it to read.env):
to, agentId, enterprise, and from).
3. Handle webhooks in the same service
Ask Cursor to addPOST /webhooks/trikon that:
- Returns
200 OKwithin 3 seconds. - Reads
event,callUuid,to,transcript,intent, andsummary. - Queues CRM updates instead of doing them in the request handler.
4. Check the work
1
Call yourself
Hit your local endpoint with your own number. The agent should ring and use
{{customer_name}} if you passed name.2
Match the call log
The JSON
callUuid should appear in Call Logs in the app.3
Confirm the webhook
After the call, your handler should receive
call.completed (or call.no_answer / call.failed).