# Vapi

Attify reads Vapi through its API, read-only, with a read-only API key, for customer support, sales meetings, and bookings. When the buyer's own account is connected the data is connected; when a vendor connects its own account it is witnessed, and counts toward a verification only after the customer consents and reconciles it each month.

## As a agent platform, for customer support, sales meetings, and bookings

| Attify event          | Vapi                                                                  |
|-----------------------|-----------------------------------------------------------------------|
| interaction           | `id` (calls with `status` ended only), channel voice                  |
| interaction.started   | `startedAt` (else `createdAt`); `customer.number`, else               |
|                       | `customer.externalId` or `customerId`, as a keyed digest              |
| message               | `messages[]`: role `bot`/`assistant` the agent, `user` the customer;  |
|                       | `time` (unix ms), else `startedAt` + `secondsFromStart`; `system` left|
| action                | each `toolCalls[]` item of a `tool_calls` message (`function.name`);  |
|                       | its `tool_call_result` says failed when the result has an error       |
| handoff               | `endedReason` naming a forward or a transfer (made, failed or left    |
|                       | during), or a connected `artifact.transfers[]` record: to a person    |
| outcome.claimed       | `analysis.successEvaluation` "true" or "false" (the PassFail rubric); |
|                       | any other rubric's score claims nothing                               |
| interaction.ended     | `endedAt`                                                             |
