# Flow Templates

> The 13 ready-made IVR Studio templates, from a greeting and hang-up to COD order confirmation in Hindi, and what each one does.

Source: https://edesy.in/docs/ivr/templates

IVR Studio has 13 templates that create a ready-to-edit draft flow: simple greetings, voicemail, keypad menus, forwarding, AI voice agents, language selection, a 1-5 feedback survey, API-driven order confirmation, COD confirmation in Hindi or English, and a reject-all flow. Pick one when you create a flow, adjust the wording and numbers, then test and publish.

## All templates

| Template | What it does | Fill in before publishing |
|---|---|---|
| Play a greeting & hang up | Answers, speaks a message, hangs up. For out-of-hours notices or announcements | The message |
| Greeting, then voicemail | Plays a short greeting and records a message you can listen to later | The greeting |
| Menu: Sales or Support | Press 1 for Sales, 2 for Support; each is forwarded to a number | The phone number in each Transfer node |
| Greeting, then forward | Plays a short hold message, then forwards to your mobile or another number | The Transfer number |
| AI voice assistant | Greets the caller, then connects a live AI voice agent over a bidirectional media stream | The bot's WebSocket URL (`wss://...`) |
| AI assistant, with a human option | Talk to the AI assistant, or press 0 to reach a person | The bot URL and the Transfer number |
| Department menu (Sales / Support / Billing) | A three-way keypad menu, each department forwarded to its own number | A number in each of the three Transfer nodes |
| Language selection | Press 1 for English, 2 for Hindi, then greets the caller in the chosen language | Your greetings |
| Feedback survey (rate 1-5) | Asks for a 1 to 5 rating on the keypad, thanks the caller, hangs up. Ratings show in call history | Nothing required |
| Order confirmation (API + HTTP) | Started from your system with the outbound API. Press 1 confirms and 2 cancels (each calls your API), 3 reaches an agent | Play audio, both HTTP Request URLs, the agent's number |
| COD confirmation (Hindi) | For order automations. Calls a COD customer in Hindi with their order and amount; 1 confirms and 2 cancels the order on your store | Your store connection |
| COD confirmation (English) | The same, in English | Your store connection |
| Reject all calls (out of service) | Declines every call before it connects, for a decommissioned number or a blocklist. No answer, no charge | Nothing required |

## How templates work

1. Choose **New flow** and pick a template.
2. A draft flow is created with the template's nodes and connections.
3. The builder shows what needs your input (for example "Open each Transfer node and enter the phone number").
4. Edit, [test](https://edesy.in/docs/ivr/getting-started/test-and-publish) and publish.

A template is only a starting point. After it is created, the flow is yours to change.

## Template details

### Order confirmation (API + HTTP)

Start, Play (your audio), then a Menu:

- `1`: HTTP Request, background mode, POST to your confirm endpoint, then "Confirmed" and hang up.
- `2`: HTTP Request, wait mode, POST to your cancel endpoint. Success: "Cancelled". Failure: "Please try later".
- `3`: Transfer to an agent.
- timeout: hang up.

Trigger calls with [`POST /v1/ivr/calls`](https://edesy.in/docs/ivr/api/outbound-ivr-calls) and pass `variables` such as `order_id`.

### COD confirmation (Hindi and English)

Start, Config (language), Say (greeting with `{{var.customer_name}}`, `{{var.store_name}}`, `{{var.order_name}}` and the amount), then a Menu:

- `1`: Order Action **confirm**, waiting for the result. Success and Failure each get their own message.
- `2`: Order Action **cancel**, waiting for the result.
- timeout: a no-input message and hang up.

In the Hindi template, check that the greeting uses `{{var.cod_amount_hindi}}` for the amount. If it shows `{{var.cod_amount}}`, replace it: TTS voices can misread digits inside a Hindi sentence, and the `_hindi` variable spells the amount out in words. See [Order Action](https://edesy.in/docs/ivr/nodes/order-action).
