# Bricks reference Every brick has settings and one or more outputs, and every output must lead to another brick or to End scenario before a scenario can be published. A new scenario starts with the four call-flow bricks; the others come from the palette. | Group | Brick | What it does | Outputs | | --------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------- | | Call flow | [Start scenario](https://docs.aiva.apifonica.com/guides/bricks/start-scenario/) | Default voice, recognition and fallbacks for the whole scenario | Outbound, Inbound, Voicemail, Busy, Unanswered | | Call flow | [End scenario](https://docs.aiva.apifonica.com/guides/bricks/end-scenario/) | Hangs up and ends the scenario | — | | Speaking | [Text-to-speech](https://docs.aiva.apifonica.com/guides/bricks/text-to-speech/) | Speaks a text, with variables | Complete, Incomplete | | Speaking | [Audio file](https://docs.aiva.apifonica.com/guides/bricks/audio-file/) | Plays a recorded file | Complete, Incomplete | | Speaking | [Audio sequence](https://docs.aiva.apifonica.com/guides/bricks/audio-sequence/) | Plays several messages: all, one by one, or at random | Complete, Incomplete | | Speaking | [Pre-load Text-to-speech](https://docs.aiva.apifonica.com/guides/bricks/pre-load-text-to-speech/) | Generates personalised speech in advance | Processed | | Speaking | [Background audio](https://docs.aiva.apifonica.com/guides/bricks/background-audio/) | Plays background sound under the dialogue | Processed | | Asking | [Question](https://docs.aiva.apifonica.com/guides/bricks/question/) | Says a prompt and recognises the answer by speech or keypad | One per answer, Invalid, Empty, Incomplete | | Asking | [AI question](https://docs.aiva.apifonica.com/guides/bricks/ai-question/) | Hands the dialogue to a language model with prompts, skills and a knowledge base | One per skill, Error, Empty, Incomplete | | Logic and data | Conditions | Branches on variable values | One per condition group, Otherwise | | Logic and data | [Variables (brick)](https://docs.aiva.apifonica.com/guides/bricks/variables-brick/) | Sets or changes variables | Processed | | Logic and data | [JavaScript](https://docs.aiva.apifonica.com/guides/bricks/javascript/) | Runs your own code against scenario variables | See the brick | | Logic and data | [HTTP request](https://docs.aiva.apifonica.com/guides/bricks/http-request/) | Calls an external API and maps the response to variables | Success, Error | | Actions | [Call transfer](https://docs.aiva.apifonica.com/guides/bricks/call-transfer/) | Transfers the caller to a person or another number | Success, Fail | | Actions | [SMS](https://docs.aiva.apifonica.com/guides/bricks/sms/) | Sends an SMS to the contact | Success, Error | | Actions | [Recording Consent](https://docs.aiva.apifonica.com/guides/bricks/recording-consent/) | Marks that the caller agreed to recording | Complete | | Outcomes | [Goal](https://docs.aiva.apifonica.com/guides/bricks/goal/) | Tags the call result | Processed | | Outcomes | [Business Metric](https://docs.aiva.apifonica.com/guides/bricks/business-metric/) | Records a key/value result of the call | Processed | | Sub-scenarios | [Input and Output](https://docs.aiva.apifonica.com/guides/bricks/input-and-output/) | Entry and exits of a sub-scenario | One per Output brick | | Removed in API 1.80.0 | [Outbound call](https://docs.aiva.apifonica.com/guides/bricks/outbound-call/) | Starts the flow when the agent places a call | Success, Fail (+ Voicemail detection) | | Removed in API 1.80.0 | [Inbound call](https://docs.aiva.apifonica.com/guides/bricks/inbound-call/) | Starts the flow when someone calls the agent’s number | Success, Fail | ## How each brick page is laid out Every page follows the same order, taken from the old help center’s brick template: what the brick does, when to use it, settings, outputs, an example, good practice, common issues and related bricks. Sections with nothing to say are left out.