# Integration overview ## Intended readers If your business makes or takes calls that could run without a person on our side, this guide is for you. Where you start depends on what telephony you already have: - **You sell telecommunications services.** Telephony and paying customers, both already yours. - **You run your own telephony.** It is in place already — we connect to it rather than replace it. - **You have no telephony of your own.** A use case, and nothing carrying calls behind it. We supply that side. And one reader who could be any of the three: an IT department deciding whether to build this in-house. ## Delivery in two halves **Alignment comes first** — where Voicebot runs, and whose telephony carries the calls. We work through it with you; there is no self-service path into it. **Then the integration itself** — mapping what your system already holds onto the objects Voicebot holds. How much of that you automate is yours to choose. A single account with one user, set up by hand, is a complete answer. So is your system creating an account the moment it creates a customer, issuing its key and provisioning its numbers with nobody touching a screen. This guide documents the automated route, because that is the one that needs documenting. If yours sits closer to the manual end, the same objects appear in the same order — you create them in the Account Panel instead. ## Deployment options Alignment settles this first. **On-premises — you run it.** You operate the installation, wherever it lives: your own cloud account, your private cloud, your own datacenter. Your telephony carries the calls. **Apifonica cloud — we run it.** We provision you a tenant on an installation that already runs. Your telephony connects to ours, or you use ours and bring none of your own. Start here These are the shapes most customers land on, not the whole set — for an enterprise deployment the specifics are agreed with you. **[Talk to our sales team](https://apifonica.com)**: they work through your case with you and recommend what fits. Once the shape is settled, our telecom engineers coordinate the connection setup with your engineers. ## The three phases Different people perform each, and they overlap. Each phase page numbers its own steps and states what finishes each one. ### [Phase 1 — Infrastructure and connection](https://docs.aiva.apifonica.com/integration/phase-1-onboarding/) **Process** — reviewing requirements, bringing up the connection between us, and creating your tenant. **Who** — us, with your engineers. **Surface** — the [Tenant API](https://docs.aiva.apifonica.com/api/tenant/). You hold the tenant key at the end of it. **Worth knowing** — the connection and the tenant finish on separate clocks. The connection carries the longest lead time in the whole integration, so it starts first and runs alongside everything else. ### [Phase 2 — API integration](https://docs.aiva.apifonica.com/integration/phase-2-api-integration/) **Process** — wiring your resources into Voicebot so its objects follow yours: an account appears here when a customer appears there. **Who** — your engineers. We join for the validation. **Surface** — both the [Tenant API](https://docs.aiva.apifonica.com/api/tenant/) and the [Account API](https://docs.aiva.apifonica.com/api/account/). The tenant key creates the structure; account keys do the work inside it. You may not need this phase It is optional in scale, not in substance. Every integration needs an account, a user who can sign in, and numbers on that account. With nothing to synchronise, one administrator creates the same objects once — in the Account Panel, or with a handful of calls — and goes straight to phase 3. ### [Phase 3 — Configuration](https://docs.aiva.apifonica.com/integration/phase-3-configuration/) **Process** — configuring the account-level entities an agent runs on: scenarios, agents, automations. **Who** — you. **Surface** — the [Account API](https://docs.aiva.apifonica.com/api/account/), or the Account Panel, with an account key. **Worth knowing** — passing phase 2’s [validation checklist](https://docs.aiva.apifonica.com/integration/phase-2-api-integration/#step-4--validate) is what opens phase 3, and that is the only real gate in the guide. ## Starting points **No tenant yet** — start at [phase 1](https://docs.aiva.apifonica.com/integration/phase-1-onboarding/). We run it with you, and it ends with the tenant key in your hands. **You hold a tenant key** — go straight to [phase 2](https://docs.aiva.apifonica.com/integration/phase-2-api-integration/), or to [phase 3](https://docs.aiva.apifonica.com/integration/phase-3-configuration/) if there is nothing to synchronise. **An account, a user and the connection already exist** — the [first call walkthrough](https://docs.aiva.apifonica.com/getting-started/first-call/) confirms the plumbing end to end before you build anything on it. ## Next steps **[Monitoring and results](https://docs.aiva.apifonica.com/integration/monitoring/)** — watching what happens on your calls, and reading outcomes, history and recordings back into your own systems. It works from your first completed call onward and belongs to no phase in particular. **[Account access for your customers](https://docs.aiva.apifonica.com/integration/account-access/)** — optional, and only if your customers work in Voicebot themselves rather than through your product. **[Concepts](https://docs.aiva.apifonica.com/concepts/)** — the object model behind everything the phases create, how [identity and access](https://docs.aiva.apifonica.com/concepts/identity/) pairs keys with surfaces, and a [glossary](https://docs.aiva.apifonica.com/concepts/glossary/) that settles the terms this guide uses in passing. **[Account API](https://docs.aiva.apifonica.com/api/account/)** and **[Tenant API](https://docs.aiva.apifonica.com/api/tenant/)** — every operation, field and status code, generated from the specification rather than described here.