# How Voicebot works An agent ties a published scenario to a phone number: inbound callers reach it by dialling the number, and automations give it contacts to call. ## How the parts connect ![How the parts fit together](https://docs.aiva.apifonica.com/_astro/3abdb0fa-fa79.1pAETUyk_1K6FLn.webp) Inbound, a caller dials the agent’s number and the scenario starts on its **Inbound call** branch. Outbound, an automation hands the agent a segment and the scenario starts on its **Outbound call** branch. Every call becomes a conversation, and its result can be posted to your systems. | Part | What it is | Page | | -------------- | -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | Contact | A phone number or SIP identifier plus data about the person | [Contacts and segments](https://docs.aiva.apifonica.com/guides/deploy/contacts-and-segments/) | | Segment | A named group of contacts that an agent calls as one | [Contacts and segments](https://docs.aiva.apifonica.com/guides/deploy/contacts-and-segments/) | | Automation | One agent calling one segment, now or in scheduled windows | [Automations](https://docs.aiva.apifonica.com/guides/deploy/automations/) | | Scenario | The conversation flow, built from bricks and published as a version | [Scenario builder](https://docs.aiva.apifonica.com/guides/build/scenario-builder/) | | Agent | One published scenario on one number or a number pool, with a set of lines | [Agents](https://docs.aiva.apifonica.com/guides/deploy/agents/) | | Number | A dialable identity of the account, provisioned by your workspace | [Phone numbers](https://docs.aiva.apifonica.com/guides/deploy/phone-numbers/) | | Conversation | The record of one call: outcome, recording, transcript, variables | [Conversations](https://docs.aiva.apifonica.com/guides/monitor/conversations/) | | Result webhook | Each finished call posted to a URL you choose | [Result webhooks](https://docs.aiva.apifonica.com/guides/monitor/result-webhooks/) | ## What happens during a call ![One turn of a call](https://docs.aiva.apifonica.com/_astro/d625e0ce-9dea.BXiN7QB8_Z1bTD6E.webp) The turn repeats until the scenario reaches **End scenario** or hands the call to a person. The platform keeps the transcript, every recognised answer, every variable set and, when call recording is on, the recording, and shows them on the conversation. ## Numbers and trunks A number is a record saying that a dialable identifier belongs to your account; a trunk is the SIP path to your carrier. Numbers are provisioned by your workspace and shown read-only in the console. Without a working trunk nothing dials, even when numbers are listed.