Skip to content

Templates

Templates are starter projects for voice, messaging, and AI use cases. Each template includes a README with setup instructions — that README is your getting-started guide for that template.

Browse Templates

sinch templates list                          # all templates
sinch templates list --runtime node           # Node.js only
sinch templates list --runtime csharp         # C# only
sinch templates list --category messaging     # voice, messaging or general
sinch templates show node/simple-voice-ivr    # full details

Templates are also browsable in the dashboard.

Catalog

The template registry listed these 16 templates on 2026-10-09 (13 for Node.js, 16 for C#). sinch templates list (command reference) shows what is available to your project.

TemplateRuntimesCategoryWhat it does
simple-voice-ivrNode.js, C#voicePlay a press-1-or-2 menu and say something different for each answer.
inbound-call-bridgeNode.js, C#voiceAnswer a call, ring your agent, and try a second number if nobody picks up.
number-maskingNode.js, C#voiceConnect two callers through your number without either seeing the other's.
track-call-statusNode.js, C#voiceLog every call event to SQLite and watch them arrive on a live dashboard.
voice-relay-echoNode.js, C#voiceCall in, say something, and hear it echoed back with a live transcript dashboard.
voice-relay-agentNode.js, C#voiceAnswer calls and let the caller talk to an LLM in real time over Sinch Voice Relay.
realtime-openaiNode.js, C#voiceTalk to an OpenAI GPT-Live voice agent with native audio and tool calling built in.
realtime-googleNode.js, C#voiceTalk to a Gemini Live voice agent with native audio and tool calling built in.
realtime-grokNode.js, C#voiceTalk to an xAI Grok voice agent with native speech-to-speech audio and tool calling built in.
realtime-deepgramNode.js, C#voiceTalk to a Deepgram voice agent over one WebSocket, no separate STT or TTS to wire up.
11labs-supportC#voiceAnswer inbound calls with a menu, then hand the caller to an ElevenLabs AI agent.
11labs-leadgenC#voicePlace an outbound call and hand it to an ElevenLabs AI agent for the whole conversation.
sms-autoresponderNode.js, C#messagingText or RCS-message your number and get back the auto-reply you set from the built-in dashboard.
rcs-openai-chatbotNode.js, C#messagingSend RCS appointment reminders and reply to messages with an OpenAI assistant.
messenger-openai-chatbotC#messagingReply to Messenger, WhatsApp, or SMS messages with an OpenAI assistant that remembers the conversation.
platform-featuresNode.js, C#generalStore a note in cache, storage, and SQLite at once, so you can see all three land.

Create a Function from a Template

sinch functions init simple-voice-ivr --name my-ivr

Downloads the template, creates the directory, installs dependencies, and prompts for required variables and secrets.

sinch.json

sinch functions init writes a new sinch.json for the function. It does not copy one from the template. For a Node.js voice template it looks like this:

{
  "name": "my-ivr",
  "functionId": null,
  "runtime": "node",
  "description": "Sinch Functions function: my-ivr",
  "created": "2026-10-09T17:00:00.000Z",
  "variables": {},
  "custom": {},
  "accessKey": "managed"
}
FieldRequiredDescription
nameYesFunction name, used as the deployment identifier
runtimeYesnode or csharp
descriptionNoHuman-readable description
accessKeyNo"managed" or "profile". Init sets "managed" on voice functions. Otherwise the first interactive deploy asks and saves the answer
variablesNoUsed by sinch functions dev and by sinch env init, which copies it into a new .env. Deploy does not send it: put deployed variables in .env (Node.js) or appsettings.json (C#)

After the first deployment, the CLI fills in functionId so subsequent commands find the function automatically.

If init created a Voice service or rented a number, sinch.json also has a createdResources field that lists them. Deploy sends that list to the Functions API and removes the field once the API has recorded them.