# 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

```bash
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](/docs/functions/cli/commands/templates)) shows what is available to your project.

| Template | Runtimes | Category | What it does |
|  --- | --- | --- | --- |
| `simple-voice-ivr` | Node.js, C# | `voice` | Play a press-1-or-2 menu and say something different for each answer. |
| `inbound-call-bridge` | Node.js, C# | `voice` | Answer a call, ring your agent, and try a second number if nobody picks up. |
| `number-masking` | Node.js, C# | `voice` | Connect two callers through your number without either seeing the other's. |
| `track-call-status` | Node.js, C# | `voice` | Log every call event to SQLite and watch them arrive on a live dashboard. |
| `voice-relay-echo` | Node.js, C# | `voice` | Call in, say something, and hear it echoed back with a live transcript dashboard. |
| `voice-relay-agent` | Node.js, C# | `voice` | Answer calls and let the caller talk to an LLM in real time over Sinch Voice Relay. |
| `realtime-openai` | Node.js, C# | `voice` | Talk to an OpenAI GPT-Live voice agent with native audio and tool calling built in. |
| `realtime-google` | Node.js, C# | `voice` | Talk to a Gemini Live voice agent with native audio and tool calling built in. |
| `realtime-grok` | Node.js, C# | `voice` | Talk to an xAI Grok voice agent with native speech-to-speech audio and tool calling built in. |
| `realtime-deepgram` | Node.js, C# | `voice` | Talk to a Deepgram voice agent over one WebSocket, no separate STT or TTS to wire up. |
| `11labs-support` | C# | `voice` | Answer inbound calls with a menu, then hand the caller to an ElevenLabs AI agent. |
| `11labs-leadgen` | C# | `voice` | Place an outbound call and hand it to an ElevenLabs AI agent for the whole conversation. |
| `sms-autoresponder` | Node.js, C# | `messaging` | Text or RCS-message your number and get back the auto-reply you set from the built-in dashboard. |
| `rcs-openai-chatbot` | Node.js, C# | `messaging` | Send RCS appointment reminders and reply to messages with an OpenAI assistant. |
| `messenger-openai-chatbot` | C# | `messaging` | Reply to Messenger, WhatsApp, or SMS messages with an OpenAI assistant that remembers the conversation. |
| `platform-features` | Node.js, C# | `general` | Store a note in cache, storage, and SQLite at once, so you can see all three land. |


## Create a Function from a Template

```bash
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:

```json
{
  "name": "my-ivr",
  "functionId": null,
  "runtime": "node",
  "description": "Sinch Functions function: my-ivr",
  "created": "2026-10-09T17:00:00.000Z",
  "variables": {},
  "custom": {},
  "accessKey": "managed"
}
```

| Field | Required | Description |
|  --- | --- | --- |
| `name` | Yes | Function name, used as the deployment identifier |
| `runtime` | Yes | `node` or `csharp` |
| `description` | No | Human-readable description |
| `accessKey` | No | `"managed"` or `"profile"`. Init sets `"managed"` on voice functions. Otherwise the first interactive deploy asks and saves the answer |
| `variables` | No | Used 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.