# Scenario builder A scenario is the flow an agent follows on every call; you build it on a canvas in the scenario builder, save drafts as you go and publish numbered versions that agents run. ## The scenario list **Build → Scenarios** lists every scenario with its creation date. Search by name at the top; **+ New scenario** opens an empty builder with four fixed bricks: **Start scenario**, **Outbound call**, **Inbound call** and **End scenario**. The **⋯** menu on each row offers **Rename**, **Create agent** and **Delete**. ![Scenario list](https://docs.aiva.apifonica.com/_astro/bdef01436ed0f4072299dda83d9a8e8b.BCoVbSZc_Z2nInyh.webp) ![Row menu: Rename, Create agent, Delete](https://docs.aiva.apifonica.com/_astro/2a518864a5dfbc49dbc835459e089c77.DFjO621d_Z2su3Ah.webp) ## The builder at a glance | Area | What is there | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | Top left | The scenario name button (⚙ + name) and the **Main scenario** button for sub-scenarios | | Left | The brick palette. **‹** collapses it to icons, **›** expands it | | Top right | **Search bricks** (shortcut /), **Save draft** with a ▾ menu, **Test call**, **Publish**; after the first publish also **Version history** | | Bottom left | Minimap, **Auto-layout**, **?** (Request support), fit to screen, zoom in and out | | Canvas | Drag an empty area to pan, scroll to zoom, click a brick to open its settings | ## The scenario menu The name button opens the scenario menu: - **Rename**: edit the name in the top field and confirm with the check mark. - **Scenario general settings**: opens the Start scenario brick with the default voice and speech recognition for the whole scenario. See Global settings. - **Additional settings**: **Smart connections** (an output dropped on an empty area connects to End scenario; on by default), **Share a copy of the scenario** (anyone with the direct link can open a copy) and **Hide scenario background**. - **Reset scenario**: clears the whole scenario back to the four fixed bricks. There is no undo, so use it only on drafts you do not need. - **Create new scenario**: an empty scenario in a new browser tab. ![Scenario menu](https://docs.aiva.apifonica.com/_astro/f9be190b0961acf4dc2c6963b47428e0.DwQVmi5B_1HuqU4.webp) ![Additional settings](https://docs.aiva.apifonica.com/_astro/7f56f20f00f4c891c4d91e44058d5121.BnBZRu20_ZTSsKq.webp) ## Working with bricks - **Add**: drag a brick from the palette onto the canvas. - **Configure**: click the brick. Its settings open in a side panel; AI question and JavaScript open in a large window. The pencil next to the title renames the brick. A ⚙ in the panel opens extra settings, such as voice or speech recognition for that brick only. - **Apply**: **Save** in the panel stores the brick and closes the panel. Closing with unsaved changes asks *All unsaved changes will be lost. Continue?*; answer **No**, then **Save**. - **Delete**: **Delete** at the bottom of the panel, then confirm. - **Status badges**: **Not configured** (orange) means required settings are empty; **Error** (red) means the brick fails validation, usually an unconnected output. Unconnected outputs show a red dot. Every brick and its settings: Bricks reference. Connecting outputs: [Connecting bricks and branching](https://docs.aiva.apifonica.com/guides/build/connecting-bricks-and-branching/). Saving and publishing: [Save, publish and versions](https://docs.aiva.apifonica.com/guides/build/save-publish-and-versions/). Reusable parts: Sub-scenarios. ## Getting help The **?** button at the bottom left of the builder opens **Request support**: type a subject and details and click **Submit**. ![Request support](https://docs.aiva.apifonica.com/_astro/d0259675e2a4d49160fe2c3ac2a7b64f.DWkw4EFu_Z1oPU2z.webp)