# Phase 3 — Configuration Configuration is everything that happens inside an account once Phase 2: API integration is done. It covers scenarios, agents, contacts and automations. It is done in the web console or on the Account API with an account key; who does it is agreed per project. ## The route | Step | In the console | On the Account API | Done when | | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | 1. Build a scenario | Scenario builder, [Quick start: inbound agent](https://docs.aiva.apifonica.com/guides/get-started/quick-start-inbound-agent/) | [POST/v1/a/scenario](https://docs.aiva.apifonica.com/api/account/operations/createscenario/), then [PATCH/v1/a/scenario/{id}](https://docs.aiva.apifonica.com/api/account/operations/patchscenario/) | The scenario has a published version ([GET/v1/a/scenario-version](https://docs.aiva.apifonica.com/api/account/operations/listscenarioversions/)) | | 2. Create an agent | [Agents](https://docs.aiva.apifonica.com/guides/deploy/agents/) | [POST/v1/a/agent](https://docs.aiva.apifonica.com/api/account/operations/createagent/) | The agent is active on a free number, or on a number pool | | 3. Connect results | Agent → **Results** | [PATCH/v1/a/agent/{id}](https://docs.aiva.apifonica.com/api/account/operations/patchagent/) with result targets | A test call’s result reaches your endpoint | | 4. Load contacts | [Contacts and segments](https://docs.aiva.apifonica.com/guides/deploy/contacts-and-segments/) | `/v1/a/contact`, `/v1/a/segment` with sources | The segment holds the right numbers and data | | 5. Create an automation | [Automations](https://docs.aiva.apifonica.com/guides/deploy/automations/) | [POST/v1/a/automation](https://docs.aiva.apifonica.com/api/account/operations/createautomation/) | The automation is saved, scheduled or started | | 6. Test | Test and debug | [POST/v1/a/communication/-/dispatch](https://docs.aiva.apifonica.com/api/account/operations/dispatchcommunication/) with `is_test` | A test call to your own phone runs end to end | ## Rules that catch people out - An automation is refused while the agent’s scenario has no published version (`automation_scenario_unpublished`). Publish first. - A number held by an agent, directly or through a pool, is not free for another agent. - Test calls take lines like any other call and are always recorded. - Contacts and their data have limits per account (by default 100,000 contacts and 30 data fields). See [Contacts and segments](https://docs.aiva.apifonica.com/guides/deploy/contacts-and-segments/). ## After go-live Read results back by pull or push: Monitoring and results.