# Ringg AI > Build AI agents that make and answer phone calls, talk on your website and chat on WhatsApp, then run them from the Ringg AI dashboard or REST API. > ## Agent Instructions > To search or read these docs, connect the Ringg docs MCP server at https://docs.ringg.ai/mcp (no key needed; tools search_ringg_ai and query_docs_filesystem_ringg_ai) instead of browsing pages one by one. Setup for each client: https://docs.ringg.ai/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants.md > The dashboard labels agents "Assistants"; these docs say "agent". Both mean the same object, identified by agent_id. > API base URL: https://prod-api.ringg.ai/ca/api/v0. Send the workspace API key in the X-API-KEY header, from server-side code only. > Placing a call dials a real phone number and spends credits. Confirm the number with the user before calling. > To act on a Ringg workspace (place calls, edit agents, read transcripts), use the separate Ringg workspace MCP server at https://mcp.ringg.ai/mcp: https://docs.ringg.ai/resources/mcp-server/workspace-mcp-server/overview.md # Agents and teams Source: https://docs.ringg.ai/analytics-platform/coach-agents/agents-and-teams Add the agents whose calls you score, set who reports to whom, and invite them to sign in. Team leads see only the agents in their team. **Agents** holds one record per person whose calls you score, with their level and team lead. The reporting lines decide what a team lead sees: their own calls and those of everyone below them. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Agents**. ![Agents table for Acme Lending with Agent name, Email, Level, Reports to, Login, Interactions, Avg score, Total HT and Avg HT columns, and Export, Manage Levels, Import CSV and Add Agent buttons](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-agents/table.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=260a75945f4f245ec70a26b648fa2c14) Agents with their level, team lead, login status and scores ## Add agents **1. Set up levels** Click **Manage Levels** and add your levels, for example **Agent** and **Team Lead**. An agent at the team-lead level signs in as a team lead. **2. Add agents** Click **Add Agent** for one, or **Import CSV** for many. The CSV takes **Name**, **Email**, **Level** and **Reports To**; download the template from the import dialog. The whole file is checked first, and nothing is added if a row has an error. **3. Set who they report to** Pick each agent's team lead under **Reports to**, or drag them onto their team lead in the org chart (the second view switch at the top). > [!TIP] > > An agent added with an email gets an invite and shows **Invited**, then **Joined** once they sign in. When you add calls with **Bulk calls**, each row is matched to an agent by email, then by name, and an agent that doesn't exist yet is created. ![Org chart with team leads Kavya Nair and Rohan Das, each with three agents under them](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-agents/org-chart.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=dcd7c5e735df05bd350c0d4f9ecda91a) The org chart ## Columns | Column | Shows | | - | - | | **Login** | **Joined**, **Invited**, **Not invited**, or **Add email to invite** | | **Interactions** | Calls and emails in the period | | **Avg score** | Average official score in the period | | **Total HT** / **Avg HT** | Total and average handling time | Click an agent to open their [report card](/analytics-platform/coach-agents/report-cards). **Export** downloads the table. ## What team leads see A team lead's **Agents** page is titled **Your team**. It lists only their team, read-only: no **Add Agent**, **Import CSV**, **Manage Levels** or **Export**, and reporting lines can't be changed. Clicking a row opens that agent's report card. ## Next steps > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > Coach an agent from their report card. > [card] [Roles and access](/analytics-platform/roles-and-access) > > What each role can see. > [card] [Interactions](/analytics-platform/review-calls/interactions) > > Add calls for your agents. # Report cards Source: https://docs.ringg.ai/analytics-platform/coach-agents/report-cards An agent's report card shows their scores against the previous period, the parameters they need to work on, their calls and coaching notes from their team lead. A report card is one agent's performance over a period: how their score moved, which parameters cost them points, and the calls behind it. Team leads, QAs and admins leave coaching notes there, and the agent reads them on their own report card. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Agents →** click an agent. Agents open their own from **Sidebar → My report card**. ## Before you start > [card] [Agents and teams](/analytics-platform/coach-agents/agents-and-teams) > > The agent exists, with a team lead and a login. > [card] [Metrics](/analytics-platform/set-up/metrics) > > Their calls are scored against a rubric. ## Coach an agent A team lead opens an agent, reads the report card and leaves a note on the parameter to work on. Opening an agent's report card and leaving a coaching note on a parameter **1. Open the agent** On **Agents**, click the agent. A team lead can open only agents in their team. **2. Read the report card** Pick the period at the top right; the default is the last 30 days, compared with the 30 days before. ![Report card for Arjun Mehta: Average score 87% up 7 points with team and workspace averages, Scored calls, Fatal calls, Appeals, the weekly score trend, Focus areas listing needs work and strengths, the Parameters list on Needs work with a Coach link per row, and the Coaching panel](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/analytics-report-cards/report-card.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=3601e2999dcb8858c027381198d9e0a8) Arjun Mehta's report card **3. Leave a note** Click **Coach** on a parameter, or pick one in the **Coaching** panel (or leave it as **General (no parameter)**). Write what to do differently and click **Post note**. > [!TIP] > > The note shows "Not read yet" until the agent marks it read, and the agent's **Summary** counts it under **New coaching notes**. ![Coaching panel with a parameter picker, a note box with Post note, and notes from Kavya Nair, one pinned to Greeted the customer by name and marked Not read yet](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-report-cards/coaching.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=a770d60ca16b1d5a14592be447c1a272) A coaching note waiting for the agent ## What's on a report card | Section | Shows | | - | - | | **Average score** | The official average, the change against the previous period, and for coaches the team and workspace averages | | **Scored calls**, **Fatal calls**, **Appeals** | Calls in the period, fatal ones, and [disputes](/analytics-platform/disputes/overview) raised and how many changed the score | | **Score trend** | Average score per day for periods up to two weeks, per week beyond (India time) | | **Parameters** | For each parameter, the share of its points the agent earned, the change, and the team's share. The tick on each bar is the workspace average. **Needs work** lists parameters under 80% on at least 3 calls, and any fatal miss. | | **Focus areas** | Up to three parameters that need work and three strengths, from parameters scored on at least 3 calls | | **Recent calls** | The latest calls with their official score and dispute result. **All calls** opens **Interactions** filtered to the agent. | | **Coaching** | Notes from the agent's team lead, QAs and admins, newest first | Scores are official: a resolved dispute's QA score replaces the AI's. Parameters marked N/A or optional on a call don't count toward it. ## Coaching notes | | Who can | | - | - | | Write a note | The agent's team lead, QAs, admins and the owner. Nobody can coach themselves. | | Mark a note read | Only the agent, with **Mark as read** | | Delete a note | Its author, or an admin | An agent's own report card has no team or workspace figures, and no note box. ![My report card for Arjun Mehta with his KPIs, score trend, parameters, focus areas and coaching notes, one marked New with a Mark as read button](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-report-card-agent/my-report.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=6d69edf4a66c2a9d45d6ffccbf9f0c6e) An agent's own report card Owners, admins and QAs can also email an agent from their report card with **Email**, using a [notification](/analytics-platform/set-up/notifications) template. ## Next steps > [card] [Summary](/analytics-platform/review-calls/summary) > > Your team at a glance. > [card] [QA reviews](/analytics-platform/review-calls/qa-reviews) > > Review the calls behind a weak parameter. > [card] [Disputes](/analytics-platform/disputes/overview) > > How agents challenge a score. # Disputes Source: https://docs.ringg.ai/analytics-platform/disputes/overview Agents dispute an AI score in Ringg Analytics; a QA re-scores the call, and the QA's score becomes the official score everywhere, with a full history. A dispute lets an agent challenge the AI's score on one of their calls: they pick the parameters they think the AI got wrong and say why. A QA then re-scores the whole call, and once they resolve the dispute, the QA's score replaces the AI's as the call's official score. Disputes live in [Ringg Analytics](https://analytics.ringg.ai), a separate product from the Ringg AI dashboard. In the app a dispute is called an **appeal**: agents click **Appeal this score**. ## How a dispute works ```mermaid theme={null} flowchart LR A[AI scores the call] --> B[Agent appeals within the window] B --> C[Waiting for review] C --> D[QA claims it: in review] D --> E[QA resolves: final score] E --> F[Optional correction later] ``` | Status | Meaning | Who acts next | | - | - | - | | **Submitted** | Waiting for a QA ("Waiting for a QA to pick it up.") | Any QA, with **Start review** | | **In review** | A QA has claimed it; other QAs see who has it | That QA resolves it, or releases it back to the queue | | **Resolved** | The QA's score is the call's official score | A QA can still [correct](/analytics-platform/disputes/results-and-corrections#corrections) it | Each dispute also has a **QA target**: the submission time plus the workspace's **QA turnaround target**. An open dispute past it shows **Overdue**. ## Who does what | Role | Can | | - | - | | Agent | [Raise a dispute](/analytics-platform/disputes/raise-a-dispute) on their own calls and follow it to the result | | Team lead | Follow their team's disputes and receive every dispute email in CC | | QA | [Review](/analytics-platform/disputes/review-a-dispute) and resolve disputes, and correct resolved ones | | Owner, admin | Everything a QA can, plus hand a dispute to another QA, and turn disputes on and set the deadlines in [Settings](/analytics-platform/disputes/settings-and-reports) | Nobody reviews their own dispute: a QA who also takes calls can't claim or resolve an appeal on their own call. ## Rules * **Calls only.** Emails and meetings can't be disputed. * **Once per call.** An agent can appeal each call once, and can't edit the appeal after submitting it. * **Inside the window.** The window starts when the AI scores the call and lasts the **Appeal window** set by an admin, in calendar days (default 3). * **The whole call is re-scored.** The QA rates every parameter, not only the disputed ones, against the rubric as it was when the agent appealed. Weights and fatal rules are the same as the AI's. * **No re-scoring while open.** A call with an open dispute can't be sent back through the AI. After it is resolved, reprocessing changes only the AI score shown next to it. ## Where the official score shows Once a dispute is resolved, the QA's score is used everywhere a score appears: **Interactions** (marked with a scale icon), **Summary**, **Agents**, [report cards](/analytics-platform/coach-agents/report-cards), [notification](/analytics-platform/set-up/notifications) conditions and exports. The AI's original score stays visible on the call for comparison. ## Next steps > [card] [Raise a dispute](/analytics-platform/disputes/raise-a-dispute) > > Agents: appeal a score. > [card] [Review a dispute](/analytics-platform/disputes/review-a-dispute) > > QAs: claim, re-score and resolve. > [card] [Settings and reports](/analytics-platform/disputes/settings-and-reports) > > Admins: windows, deadlines and the dispute report. # Raise a dispute Source: https://docs.ringg.ai/analytics-platform/disputes/raise-a-dispute As an agent, appeal the AI score on one of your calls in Ringg Analytics: pick the parameters you think are wrong, explain each one, and submit. If you think the AI scored one of your calls wrongly, appeal it: pick the parameters it got wrong and say why for each. A QA re-scores the call, and their score becomes final. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Interactions →** open your call. ## Before you start > [card] [A linked agent login](/analytics-platform/roles-and-access) > > You sign in as an agent and see your own calls. > [card] [Disputes turned on](/analytics-platform/disputes/settings-and-reports) > > An admin turns appeals on for the workspace. ## Appeal a call The video shows the whole flow, from finding the call to the submitted appeal. Finding a call you can still appeal, disputing two parameters and submitting **1. Find the calls you can still appeal** On **Interactions**, click **Filter → Appeal**, pick **Can still appeal** and click **Save**. The list shows your scored calls still inside the appeal window, each with its deadline, for example **Appeal by Oct 24**. ![Interactions with the Appeal: Can still appeal filter chip, listing three of Vikram Rao's calls with scores 70, 74 and 90, each marked Appeal by Oct 24](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-raise/can-still-appeal.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=201d782d3123796e7f08b73cdf09b9ff) Calls you can still appeal **2. Open the call and click Appeal this score** Click the call, then **Open full page** for more room. Under the speaking distribution, "Think the AI got this wrong?" shows your deadline: "Appeal by …" and the hours left. Click **Appeal this score**. ![Card reading Think the AI got this wrong?, Appeal by Sat, 24 Oct, 1:01 pm IST · 47 hours left, with an Appeal this score button](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-raise/appeal-button.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=825c68c06e4016f4e4499d4272db4351) The appeal deadline and button on the call **3. Tick the parameters you dispute and say why** The form lists every parameter with the AI's rating, for example **AI: No**. Tick each one you think is wrong. Its box opens with the AI's reason; write why it is wrong, in at least 20 characters. Point the QA to the moment in the call, for example "at 0:06". ![Appeal form with Gave the recording disclosure and Stated the EMI amount and due date ticked, each showing AI: No, the AI's reason and the agent's explanation with its character count, and the other parameters unticked with their AI ratings](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-raise/appeal-form.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=ae10285aa41fd0fd3679bf648eb0a544) Two parameters disputed, each with a reason Add anything else for the QA in "Anything else the QA should know? (optional)". **4. Review and submit** Click **Review & submit**. You can appeal a call only once, and can't edit the appeal after you submit it, so check it, then click **Submit appeal**. **Back** returns to the form. ![Confirmation reading You can appeal this call only once, and the appeal can't be edited after you submit it. Submit 2 disputed parameters?, with Back and Submit appeal buttons](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-raise/confirm.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=ee4d49ea172b4b5c4971a0d9d104b3ff) The last check before the appeal is sent > [!TIP] > > The call shows the appeal as **Submitted**, "Waiting for a QA to pick it up.", with the **QA target** for a decision. You and your team lead get an email: "Appeal submitted: …". ![Appeal card with status Submitted, submitted by Vikram Rao with team lead Rohan Das, the QA target date with 47 hours left, Waiting for a QA to pick it up., and 2 disputed parameters](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-raise/submitted.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=2b93a304c02e016610aed6acbc52c5f2) A submitted appeal ## Follow your appeals On **Interactions**, filter **Appeal** to **Appealed — awaiting QA** for open appeals, or **Appeal resolved** for decided ones. The call's appeal card changes to "A QA is re-scoring your call." when a QA picks it up. See [Results and corrections](/analytics-platform/disputes/results-and-corrections) for what you get back. ## When you can't appeal **Appeal this score** isn't offered when disputes are off, or the call isn't yours, isn't a call, isn't scored yet or already has an appeal. Otherwise the card says why: | Message | Why | | - | - | | "The appeal window for this call has closed" | The window, counted from when the AI scored the call, has passed | | "This call is being re-scored — you can appeal once it finishes" | The call is being reprocessed | ## Next steps > [card] [Results and corrections](/analytics-platform/disputes/results-and-corrections) > > What happens when the QA decides. > [card] [Review a dispute](/analytics-platform/disputes/review-a-dispute) > > What the QA does with your appeal. > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > Where appeals show on your report card. # Results and corrections Source: https://docs.ringg.ai/analytics-platform/disputes/results-and-corrections After a QA resolves a dispute, the agent sees the final score, each parameter's result and the QA's remarks. A QA can correct a resolved dispute later. When a QA resolves a dispute, the result shows on the call for the agent, their team lead and reviewers, and an email goes out. If the decision has to change later, a QA corrects it; every version is kept. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Interactions →** open the call. ## What the agent sees ![Final score · Appeal reviewed by QA card showing 100, AI scored 92 (+8) · Overturned; the Appeal card marked Resolved with who submitted and who resolved it; both disputed parameters, Greeted the customer by name No to Yes and Closed with a recap 2 to 5, marked Changed with the QA's remarks; and the original AI score of 92 below](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-results/result.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=5d14e7dff6a4d46c156e0dae61a92bbb) An overturned dispute, as the agent sees it | Part | Shows | | - | - | | "Final score · Appeal reviewed by QA" | The official score, the AI's score and the difference, and the outcome: **AI score upheld**, **Partially overturned** or **Overturned** | | **Appeal** card | Status, who submitted it and when, who resolved it and when | | Disputed parameters | The AI's rating, the QA's, **Changed** or **Unchanged**, and the QA's remark | | The AI's score | The original AI scoring, unchanged, for comparison | The agent and their current team lead get an email: "Appeal reviewed: … — final score N%", with each disputed parameter's result and the QA's note. The official score then counts everywhere: **Interactions**, **Summary**, **Agents**, [report cards](/analytics-platform/coach-agents/report-cards), [notification](/analytics-platform/set-up/notifications) conditions and exports. ## Appeal history **Appeal history** at the bottom of the call lists every step: **Appealed**, **Review started**, **Released**, **Reassigned**, **Resolved** and **Corrected**, by whom and when, with each version's final score. Everyone who can see the call can read it, and it is never deleted. ## Corrections Use a correction when a resolved decision turns out wrong, for example after a team lead escalates it offline and the escalation is accepted. **1. Open the resolved call** As a QA, admin or owner, open the call and click **Correct the final score (offline dispute accepted)**. **2. Re-rate and give a reason** Change the ratings that need it and write why you are correcting. The reason is required. **3. Save** Click **Review correction**, then **Save correction**. > [!TIP] > > The call shows the new final score and **Corrected · v2**, with your reason. The agent and their team lead get an email: "Score corrected: … — now N%". ![Final score 86, AI scored 71 (+15) · Overturned · corrected (v2); the Appeal card marked Resolved and Corrected · v2; both disputed parameters marked Changed; the correction reason; and the Correct the final score (offline dispute accepted) button](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-corrections/corrected.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=52b3ed4218ef3ae86a9692780d4bc116) A corrected dispute If two reviewers correct the same appeal at once, the second save is refused, so nobody overwrites a correction they haven't seen. ## Next steps > [card] [Settings and reports](/analytics-platform/disputes/settings-and-reports) > > See overturn rates by parameter. > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > Where resolved disputes show for an agent. > [card] [Overview](/analytics-platform/disputes/overview) > > The rules for disputes. # Review a dispute Source: https://docs.ringg.ai/analytics-platform/disputes/review-a-dispute As a QA, take a dispute from the queue, re-score the call with the disputed parameters first, keep the AI's ratings for the rest, and resolve it. When an agent appeals a call, a QA re-scores it. You rate each disputed parameter with a remark the agent reads, keep or change the AI's ratings for the rest, and resolve; your score becomes the call's official score. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Interactions → Filter → Appeal**. Owners, admins and QAs can review. ## Before you start > [card] [A reviewer role](/analytics-platform/roles-and-access) > > You are a QA, an admin or the owner. > [card] [An appeal waiting](/analytics-platform/disputes/raise-a-dispute) > > An agent has appealed a call. ## Resolve a dispute The video shows the whole flow, from the queue to the final score. Taking an appeal from the queue, re-scoring it and resolving it **1. Open the queue** On **Interactions**, click **Filter → Appeal**, pick **Waiting for review** and click **Save**. The queue lists the oldest appeal first. ![Interactions with the Appeal: Waiting for review filter chip, listing three calls by Meera Iyer, Rahul Verma and Vikram Rao, each with an Appeal · waiting badge](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-review/queue.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=7bcd35ec4557d5eeb97196443c4869f3) Appeals waiting for review **2. Claim the appeal** Click the call, then **Open full page**. The **Appeal** card shows who appealed, their team lead, the **QA target** and the disputed parameters. Click **Start review**. ![Appeal card marked Submitted: submitted by Meera Iyer with team lead Rohan Das, QA target with 6 hours left, 1 disputed parameter, and a Start review button](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-review/start-review.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=609f2b1cdbf8ab9d8f76adb82845f9b0) An appeal waiting for a QA > [!TIP] > > The appeal moves to **In review**, and other QAs see that you have it. **3. Rate the disputed parameters** **Review the appeal** opens with "Disputed by the agent" first. Each disputed parameter shows the agent's reason and the AI's. Pick your rating and write a remark: the remark is required, and the agent reads it. **4. Keep or change the rest** **Other parameters** holds everything nobody disputed. Click **Keep AI ratings for …** to keep the AI's rating on all of them, or **Rate them myself** to open them and change any. Tick **Mark interaction as fatal** if the call breaks a fatal rule, and add a note to the agent if you want; it goes in their email. ![Review the appeal form: Disputed by the agent (1), 1/1 rated, with Stated the EMI amount and due date showing AI: No, the agent's and the AI's reasons, Yes selected, the QA's remark and an Accepted badge; below, Other parameters (9) · AI ratings kept with a Rate them myself button](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-review/review-form.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=ccfcae93caf0d511d71a95c51a894fb8) A disputed parameter accepted, the AI's ratings kept for the rest **5. Resolve** Check **Score so far** and click **Resolve appeal**. The confirmation says how many parameters keep the AI's rating; click **Submit final score**, or **Back** to change something. ![Confirmation reading Your score replaces the AI score everywhere, and the agent and their TL are emailed. Submit the final scoring? The AI's ratings are kept for 9 parameters you didn't rate., with Back and Submit final score buttons](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-review/resolve-confirm.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=9c71723c3601d895f35edbc5ace3fec1) The last check before the score is final > [!TIP] > > The call shows "Final score · Appeal reviewed by QA" with the AI's score and the outcome, and each disputed parameter's result with your remark. The agent and their team lead get an email: "Appeal reviewed: …". ![Final score 100, AI scored 90 (+10) · Overturned; the Appeal card marked Resolved, submitted by Meera Iyer and resolved by Farah Ali; Stated the EMI amount and due date changed from No to Yes with the QA's remark; and the Correct the final score (offline dispute accepted) button](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-review/final-score.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=81c477dfff9ed32bb9b78a1e1727c8ca) The resolved appeal Your work saves as a draft while you review, so you can leave and come back. Only reviewers see the draft; the agent never does. ## Queue filters | Filter | Lists | | - | - | | **Waiting for review** | Appeals no QA has claimed | | **In review** | Appeals a QA has claimed | | **In review by me** | Appeals you have claimed | | **Overdue** | Open appeals past their **QA target** | | **Resolved** | Appeals with a final score | | **Not appealed** | Calls without an appeal | ## Release or reassign * Click **Release** to put an appeal you claimed back in the queue. * An owner or admin can **Take back** anyone's claim, or pick a QA under **Assign to…** to hand it over. * A reviewer who is removed from the workspace, or moved to a role that can't review, gives up their claims automatically. ## Blind review A QA in **Blind review** sees the names of the disputed parameters but not the agent's reasons, and none of the AI's ratings or reasons, so they re-score the call from the recording. **Keep AI ratings** still works; the ratings stay hidden. See [QA settings](/analytics-platform/roles-and-access#qa-settings). ## Outcomes Each disputed parameter is marked **Changed** or **Unchanged** (**Accepted** or **Rejected** in full view), and the appeal as a whole: | Outcome | When | | - | - | | **AI score upheld** | You changed none of the disputed parameters | | **Partially overturned** | You changed some of them | | **Overturned** | You changed all of them | ## Next steps > [card] [Results and corrections](/analytics-platform/disputes/results-and-corrections) > > What the agent sees, and how to correct a result. > [card] [Settings and reports](/analytics-platform/disputes/settings-and-reports) > > Turnaround targets and the dispute report. > [card] [QA reviews](/analytics-platform/review-calls/qa-reviews) > > Review calls nobody disputed. # Settings and reports Source: https://docs.ringg.ai/analytics-platform/disputes/settings-and-reports Turn disputes on, set how long agents can appeal and how fast QAs should resolve, then track appeal and overturn rates to see where the AI is weakest. Admins turn disputes on and set two deadlines for the workspace. The dispute report then shows how often agents appeal, how often QAs change the AI's rating, and which parameters the AI gets wrong most. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Settings** for the settings, **Sidebar → Analytics** for the report. ## Settings ![Appeals settings card switched On, with Appeal window 3 calendar days and QA turnaround target 2 calendar days, and a Save button](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-settings/settings.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=af8bb3f074c82776114a54c42393ef27) Dispute settings **1. Turn appeals on** In the **Appeals** card, turn the switch **On**. Agents can't appeal while it is off. **2. Set the deadlines** Both are in calendar days, from 1 to 30: | Setting | Default | Meaning | | - | - | - | | **Appeal window** | 3 | How long after the AI scores a call an agent can appeal it. A change applies to calls not yet appealed. | | **QA turnaround target** | 2 | How soon a QA should resolve an appeal. Later ones are flagged **Overdue**. A change applies to new appeals. | **3. Save** > [!TIP] > > "Saved" shows next to the button. Only owners and admins can open **Settings**. Whether a QA sees the AI's score while reviewing is set per QA on **Team** (see [QA settings](/analytics-platform/roles-and-access#qa-settings)). ## Dispute report The **Disputed AI scores** section at the bottom of **Analytics** covers the period you pick. Owners, admins and QAs in full view can see it. ![Disputed AI scores section with Appeal rate 15%, Overturn rate 83%, Median turnaround 20.4 h, Closed on time 100% and Open now 3, the outcomes line, and Overturn rate by parameter listing four parameters with their disputed and overturned counts](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/disputes-settings/report.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=9c8c73743a102696c46f24dd4072f838) The dispute report | Figure | What it measures | | - | - | | **Appeal rate** | Scored calls in the period that were appealed | | **Overturn rate** | Disputed parameters a QA changed, out of all disputed parameters | | **Median turnaround** | Time from appeal to first resolution, with the time 90% were resolved within | | **Closed on time** | Appeals resolved by their **QA target**, and how many were corrected later | | **Open now** | Appeals waiting or in review, and how many are overdue | | Outcomes | Appeals **Overturned**, **Partially overturned** and **AI score upheld**, the average score change, and how often QAs changed parameters nobody disputed | | **Overturn rate by parameter** | For each parameter: how often it was disputed and how often the QA changed it. A high rate marks a parameter the AI gets wrong. | **Open the queue** opens **Interactions** filtered to appeals waiting for review. **Export** downloads the appeals in the period as a spreadsheet, with one sheet for the appeals, one for every disputed parameter's result, and one for their history. ## Next steps > [card] [Review a dispute](/analytics-platform/disputes/review-a-dispute) > > Work through the queue. > [card] [Metrics](/analytics-platform/set-up/metrics) > > Sharpen the descriptions of parameters the AI gets wrong. > [card] [Roles and access](/analytics-platform/roles-and-access) > > Set each QA's review mode. # Ringg Analytics Source: https://docs.ringg.ai/analytics-platform/introduction Ringg Analytics scores your agents' calls against your own rubric, shows each agent and team where to improve, and lets agents dispute AI scores. Ringg Analytics audits the calls your human agents make and take. It transcribes each call, scores it against your rubric, flags issues, and shows agents, team leads and QAs where to improve. > [!NOTE] > > Ringg Analytics is a separate product at **[analytics.ringg.ai](https://analytics.ringg.ai)**, not part of the Ringg AI dashboard at `ringg.ai/dashboard`. It has its own sign-in: your dashboard login doesn't sign you in here, and the reverse is true too. ![Ringg Analytics Summary page: Total interactions, Avg score, Above 80% and Fatal issues cards, top and bottom agents, top and bottom interactions, and the score trend per day](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/analytics-summary/workspace.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=64b2faad399bd1b30cd939150794bf9f) The Summary page for the Acme Lending workspace ## Sign in You join a workspace by invitation. An admin invites QAs, admins and members from **Team**, and agents and team leads from **Agents**; the invite comes by email. **1. Open analytics.ringg.ai** Enter your work email and click **Sign in**. **2. Enter the code** "Check your email": type the six-digit code from the email. There is no password. > [!TIP] > > You land on **Summary**. If you belong to several workspaces, switch between them from the workspace menu at the top of the sidebar. ## How it works ```mermaid theme={null} flowchart LR A[Call recording] --> B[Transcript] B --> C[Score against your rubric] C --> D[Summary, Interactions, report cards] C --> E[Notifications] D --> F[Agent disputes a score] F --> G[QA re-scores: official score] ``` Every call is scored against the [metrics](/analytics-platform/set-up/metrics) of its use case: each parameter gets a rating and a reason quoting the transcript, and a missed fatal parameter sets the score to 0. QAs can [review](/analytics-platform/review-calls/qa-reviews) any call, and agents can [dispute](/analytics-platform/disputes/overview) a score they think is wrong. ## Get calls in On **Interactions**, click **New**: | Option | What it takes | | - | - | | **Call recordings** | `.wav` and `.mp3` audio files | | **Bulk calls** | A CSV with a link to each recording, plus the agent's email or name | | **Email conversations** | **Import from CSV** | | **Video recordings** | `.mp4`, `.mov`, `.avi` and `.mkv` meeting recordings | Only owners, admins and QAs can add calls. To let your own systems submit recordings, an admin creates a key under **Settings → API Keys → Create API key**. ## What's in Ringg Analytics > [card] [Roles and access](/analytics-platform/roles-and-access) > > Who sees which calls and pages. > [card] [Summary](/analytics-platform/review-calls/summary) > > Scores and trends for your workspace, team or own calls. > [card] [Interactions](/analytics-platform/review-calls/interactions) > > Every call with its transcript, recording and scorecard. > [card] [QA reviews](/analytics-platform/review-calls/qa-reviews) > > Re-score a call by hand next to the AI. > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > One agent's performance, focus areas and coaching notes. > [card] [Disputes](/analytics-platform/disputes/overview) > > Agents appeal an AI score; a QA settles it. ## Next steps > [card] [Metrics](/analytics-platform/set-up/metrics) > > Set the rubric calls are scored against. > [card] [Agents and teams](/analytics-platform/coach-agents/agents-and-teams) > > Add agents and team leads and invite them. > [card] [Roles and access](/analytics-platform/roles-and-access) > > Decide who sees what. # Interactions Source: https://docs.ringg.ai/analytics-platform/review-calls/interactions Interactions lists every call, email and meeting with its score, agent and status; open one for the transcript, recording and the scorecard behind the score. **Interactions** is the list of everything Ringg Analytics has scored. Open any row to see why it scored the way it did: the transcript, the recording, and a rating with a reason for every parameter. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Interactions**. ![Interactions list with Title, Type, Agent, Use case, Duration, Score and Status columns; some rows show appeal badges such as Appeal · waiting and Appeal · resolved, and one row shows a FATAL score of 0](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-interactions/list.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=c010e13d194596b41062737b4d33d1ee) Interactions for the last 30 days Agents see only their own calls here and team leads their team's (see [Roles and access](/analytics-platform/roles-and-access)). ## Filter and sort Click **Filter**. Active filters show as chips above the list; click a chip's **×** to clear it. | Filter | Options | | - | - | | **Type** | Calls, emails or meetings | | **Status** | **Pending**, **Processing**, **Analyzed**, **Failed** | | **Agent** | One or more agents. Not shown to agents. | | **Use Case** | The [use case](/analytics-platform/set-up/metrics) a call was scored under | | **Duration** | Call length, for example **Under 2 min** | | **Score** | Score range. Hidden in blind review. | | **Classification** | Calls tagged with a classification, such as a fatal issue. Not shown to agents and team leads. | | **Human Evaluation** | Calls a QA has or hasn't [reviewed](/analytics-platform/review-calls/qa-reviews) | | **Appeal** | [Dispute](/analytics-platform/disputes/overview) status, such as **Waiting for review** or **Overdue**. Agents get **Can still appeal**, **Appealed — awaiting QA** and **Appeal resolved**. | | **ID / External ID** | A call's ID or your own reference | The **Score** column shows the official score: a scale icon marks one set by a QA on a resolved dispute, and **FATAL** marks a call whose score is 0 because a fatal parameter was missed. **Export** downloads the filtered list as a spreadsheet. It's available to owners, admins, QAs and members. ## Open a call Click a row to open the call in a side panel, or **Open full page** in that panel for the full-width view below. ![Call Analysis for Missed EMI follow-up with the agent, date, duration, status and IDs, the audio waveform with play button and speed, the transcript with Agent and Customer turns and timestamps, and Analytics with speaking distribution, the overall score and category scores](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-interactions/call-page.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=1261f08a07754a10326720a419ae604d) One call: the transcript on the left, the scorecard on the right | Section | What it shows | | - | - | | Audio | The recording with a waveform. Click the waveform to jump to a moment, and change the playback speed next to it. | | **Transcript** | Each turn labelled **Agent** or **Customer**, with its time in the call | | **Speaking distribution** | Talk time and turns for the agent and the customer | | Score | The overall score, or **AI** and **Human** side by side once a QA has [reviewed](/analytics-platform/review-calls/qa-reviews) the call | | Categories | Points earned per category, for example **Compliance 40/40**. Expand one for its parameters: the rating, the AI's reason and the quote from the call it is based on. | | **Summary** and **Key Events** | What happened on the call and what needs follow-up | | Classifications | Tags such as **Promise to pay**, with their severity | If the call has a [dispute](/analytics-platform/disputes/overview), its status and result sit at the top of the scorecard. ## Next steps > [card] [QA reviews](/analytics-platform/review-calls/qa-reviews) > > Re-score a call by hand. > [card] [Raise a dispute](/analytics-platform/disputes/raise-a-dispute) > > Agents: appeal a score you think is wrong. > [card] [Metrics](/analytics-platform/set-up/metrics) > > The rubric behind every score. # QA reviews Source: https://docs.ringg.ai/analytics-platform/review-calls/qa-reviews A QA re-scores a call by hand, parameter by parameter, and sees their Human score next to the AI's. Reviews can trigger an email to the agent. A QA review is a QA's own scoring of a call, done whenever they choose. It sits next to the AI's score and doesn't replace it; to change the official score of a call, the agent [disputes](/analytics-platform/disputes/overview) it and a QA resolves the dispute. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Interactions →** open a call. Owners, admins and QAs can review. ## Review a call **1. Open the call** Open it from **Interactions**, or **Open full page** for more room. **2. Rate the parameters you check** Expand a category and pick a rating for each parameter you check, with a comment saying why. Parameters you don't rate keep the AI's rating in your **Human** score. **3. Mark the call fatal if it is** Tick **Mark interaction as fatal** to set the Human score to 0, whatever the ratings, and say why. **4. Save** Click **Save review**, or **Discard** to drop your changes. > [!TIP] > > The scorecard shows **AI** and **Human** scores side by side. ![Call Analysis for a Missed EMI follow-up call by Arjun Mehta with the recording, the transcript, and AI 85 next to Human 95, a View detailed comparison link and the Mark interaction as fatal option](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-qa-reviews/review.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=8956f2699865de1ba00ac12b8c6d56cc) A reviewed call: the AI scored 85, the QA 95 **View detailed comparison** lists the parameters where you and the AI disagree, or says "Fully aligned". Every save is kept in the call's review history, marked **Added**, **Edited** or **Cleared**, with who made it. ## Rules * A QA set to **Rate and comment on every parameter** can't save until each parameter has a rating and a comment: "Rate and comment on every parameter to save: N left." Clearing a whole review is always allowed. * A QA in **Blind review** sees AI ratings, reasons and summaries as `***` while they score, so their ratings stay independent. Admins set both on **Team** (see [QA settings](/analytics-platform/roles-and-access#qa-settings)). * Use **Human Evaluation** in the **Interactions** filter to list reviewed or unreviewed calls. ## Share reviews with agents To email the agent each time a QA saves a review, add a notification trigger that starts when **A QA reviews a call**. The ready-made **QA Review Shared** template lists the QA's score against the AI's and every rating and comment. See [Notifications](/analytics-platform/set-up/notifications). ## Next steps > [card] [Notifications](/analytics-platform/set-up/notifications) > > Email agents when a QA reviews their call. > [card] [Review a dispute](/analytics-platform/disputes/review-a-dispute) > > Re-score a call an agent disputed. > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > Turn reviews into coaching. # Summary Source: https://docs.ringg.ai/analytics-platform/review-calls/summary The Summary page shows call volume, average score, fatal calls and the score trend for your whole workspace, your team, or only your own calls. **Summary** is the first page after you sign in. What it covers depends on your [role](/analytics-platform/roles-and-access): owners, admins, QAs and members see the whole workspace, a team lead sees their team, and an agent sees their own calls. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Summary**. Pick the period with the date picker at the top right; the default is the last 30 days. Scores are the official ones: a call's [resolved dispute](/analytics-platform/disputes/results-and-corrections) score where there is one, otherwise the AI's. ## Workspace ![Workspace Summary with All, Calls, Emails and Meetings switches, four cards (Total interactions, Avg score, Above 80%, Fatal issues), top agents and top interactions lists, and the daily score trend](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/analytics-summary/workspace.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=64b2faad399bd1b30cd939150794bf9f) Summary for the whole workspace | Card or panel | Shows | | - | - | | **Total interactions** | Calls, emails and meetings in the period, analyzed and pending | | **Avg score** | Average score of analyzed interactions, with the split by type | | **Above 80%** | Interactions that scored 80 or more | | **Fatal issues** | Fatal classifications found | | **Agents** | Top or bottom agents by average score. The arrow opens **Agents**. | | **Interactions** | Best or worst interactions. The arrow opens **Interactions** sorted by score. | | **Score Trend** | Average score per day | Switch **All**, **Calls**, **Emails** or **Meetings** at the top to narrow every card to one type. ## Team summary A team lead's **Summary** covers only their team, with the workspace average as the one benchmark. ![Team summary for Kavya Nair: Team interactions, Team average score with the change against the previous period and the workspace average, Fatal calls, Open appeals, the Your team list with each agent's average and change, Where the team loses points, and Lowest-scoring calls](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/analytics-summary-team/team.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=d0db230e5d38efd2832412a716db8456) A team lead's Summary * **Team average score** shows the change against the previous period of the same length, and the workspace average. * **Your team** lists each agent, lowest average first, with their change. Click an agent to open their [report card](/analytics-platform/coach-agents/report-cards). * **Where the team loses points** lists parameters scored on at least 3 calls where the team earns under 80% of the points. * **Open appeals** counts the team's [disputes](/analytics-platform/disputes/overview) waiting for a QA. ## My summary An agent's **Summary** covers only their own calls: their average and trend, lowest-scoring calls, the parameters to focus on, and **New coaching notes** from their team lead or QA. The notes card opens **My report card**. ![My summary for Arjun Mehta: Interactions, Average score with the change against the previous period, Fatal calls, New coaching notes, Lowest-scoring calls, Where to focus and My score trend](https://mintcdn.com/ringgai-0da73d20/BhQtV3gvIrxE9J2L/media/analytics-summary-agent/agent.webp?fit=max\&auto=format\&n=BhQtV3gvIrxE9J2L\&q=85\&s=8d90aa87185898ec057008851263a903) An agent's own Summary ## Next steps > [card] [Interactions](/analytics-platform/review-calls/interactions) > > Open a call behind a score. > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > One agent's performance in depth. > [card] [Roles and access](/analytics-platform/roles-and-access) > > Why each role sees different figures. # Roles and access Source: https://docs.ringg.ai/analytics-platform/roles-and-access Each Ringg Analytics role sees only the calls and pages it needs: agents their own calls, team leads their team, QAs and admins the whole workspace. Every member of a Ringg Analytics workspace has one role. The role decides which calls they can open and which pages they see; the server enforces the same rules, so a hidden page's data can't be fetched another way. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Team** (owners and admins). ## Roles | Role | Calls they see | Pages | Can also | | - | - | - | - | | **Owner** | All | All | Everything an admin can. Set when the workspace is created. | | **Admin** | All | All, plus **Team** and **Settings** | Manage members, agents, metrics, notifications and dispute settings; reassign disputes; delete and reprocess calls | | **QA** | All | All except **Team** and **Settings** | Add calls, [review](/analytics-platform/review-calls/qa-reviews) calls, resolve [disputes](/analytics-platform/disputes/review-a-dispute), set up notifications, coach agents | | **Team lead** | Their team: the agents who report to them, directly or further down | **Summary** (their team), **Interactions**, **Agents** (their team, read-only), **Metrics** (read-only) | Leave coaching notes on their agents' [report cards](/analytics-platform/coach-agents/report-cards) | | **Agent** | Their own | **Summary** (their own), **Interactions**, **My report card**, **Metrics** (read-only) | [Dispute](/analytics-platform/disputes/raise-a-dispute) an AI score | | **Member** | All | All except **Notifications**, **Team** and **Settings** | Read only | A team lead sees the workspace average as a benchmark, but never another team's figures. An agent sees no team or workspace figures at all. ## Invite members **1. Invite QAs, admins and members from Team** Click **Invite User**, enter the name and email, and pick the role. For a QA, also pick the **Review mode** and whether they must **Rate and comment on every parameter** (see [QA settings](#qa-settings)). **2. Add agents and team leads from Agents** Adding an agent with an email invites them and links their login to their agent record, which is what limits them to their own calls. See [Agents and teams](/analytics-platform/coach-agents/agents-and-teams). > [!TIP] > > The invite arrives by email, and the member shows **Invite pending** until they sign in. An agent or team lead whose login isn't linked to an agent record sees no calls. Their **Summary** says "Your login isn't linked to an agent yet". ## QA settings Set per QA when you invite them, or later from the icon next to their role on **Team**. | Setting | What it does | | - | - | | **Review mode: Blind review** (recommended) | The QA scores calls without seeing the AI. AI scores, reasoning and summaries show as `***`, and pages built on AI scores (**Summary**, **Business**, **Agents**, **Analytics**, **Notifications**) are hidden. | | **Review mode: Full view** | The QA sees AI scores, reasoning and summaries next to the rubric, plus the dashboards. | | **Rate and comment on every parameter** | The QA can't save a review until every parameter has a rating and a comment. | ## Next steps > [card] [Agents and teams](/analytics-platform/coach-agents/agents-and-teams) > > Build the team structure team leads are scoped to. > [card] [QA reviews](/analytics-platform/review-calls/qa-reviews) > > How QAs score calls by hand. > [card] [Disputes](/analytics-platform/disputes/overview) > > How agents challenge an AI score. # Metrics Source: https://docs.ringg.ai/analytics-platform/set-up/metrics Metrics hold the rubric Ringg Analytics scores calls against: one set per use case, with weighted parameters, rating scales and fatal rules. A rubric is the list of parameters a call is scored on, grouped into categories, each with a weight. Each use case, such as EMI collections, has its own rubric per channel; every call is scored against the rubric of its use case. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Metrics**. Everyone can read the metrics; only owners and admins change them. ![EMI collections use case with Quality metrics, Business metrics and Custom variables tabs, cards for 10 parameters, 100 total weight, 4 categories and 2 fatal rules, and the Call Opening category listing two Yes / No parameters of weight 5 with their descriptions](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-metrics/scorecard.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=c7a53c0e763801442220add9564fe370) The EMI collections rubric ## Set up a rubric **1. Create the use case** On **Metrics**, click **New Use Case** and name it for the kind of call, for example "EMI collections". **2. Add the parameters** Open the use case. On **Quality metrics**, click **Add parameters** for one at a time, or **Import Sheet** to load a spreadsheet of them. **Edit Rubric** changes existing ones. Pick the channel the rubric applies to under **Channel**. **3. Check the totals** The cards at the top show the number of parameters, the **Total weight**, the categories and the **Fatal rules**. > [!TIP] > > New calls in the use case are scored against the rubric. **Export** downloads it as a spreadsheet. ## Parameters Each parameter has a category, a weight, a scale, and a description the AI follows when it rates a call. The call's score is the share of the total weight it earned, out of 100. | Scale | Ratings | Points | | - | - | - | | Yes / No | Yes, No | Full or none | | Yes / No / N/A | Yes, No, N/A | N/A leaves the parameter out of the score | | Yes / Maybe / No | Yes, Maybe, No | Maybe earns half | | 0 / 3 / 5 | 0, 3, 5 | A share of the weight | | 0 to 5 | 0 to 5 | A share of the weight | * **Fatal** parameters are the ones a call can't miss, such as verifying the customer's identity. Missing one sets the call's score to 0 and flags it **FATAL**. * **Optional** parameters don't count toward the score. **Business metrics** track outcomes such as a payment promise, and **Custom variables** declare values you send with each call; both are set per use case. ## Next steps > [card] [Interactions](/analytics-platform/review-calls/interactions) > > See a call's rating for each parameter. > [card] [Notifications](/analytics-platform/set-up/notifications) > > Alert agents on low scores or fatal misses. > [card] [Report cards](/analytics-platform/coach-agents/report-cards) > > Each agent's results per parameter. # Notifications Source: https://docs.ringg.ai/analytics-platform/set-up/notifications Email agents automatically when a call scores low, misses a fatal parameter or gets a QA review, with their team lead in CC, using templates you design. A trigger sends an email when a call meets your conditions: after the AI scores it, or each time a QA reviews it. Use triggers for alerts such as a fatal miss, and to share QA feedback with the agent. In [Ringg Analytics](https://analytics.ringg.ai): **Sidebar → Notifications**. Owners, admins and QAs can open it. ![Notifications Setup tab listing the triggers Low score alert and Share QA reviews with the agent, marked On QA review, and the five System templates below](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-notifications/triggers.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=7bb72316840981c7343505c9a7cf9fe0) Triggers and templates on the Setup tab ## Add a trigger **1. Start a trigger** On **Setup**, click **Add trigger** and give it a **Trigger name**. Pick the **Use case**: the trigger only fires for calls in it, and its parameters become available as conditions. **2. Choose what starts it** Under **What starts it?**: * **The AI scores a call**: runs once the AI has scored and classified the call. * **A QA reviews a call**: runs each time a QA saves a change to their [review](/analytics-platform/review-calls/qa-reviews). Saving an unchanged review, or clearing it, sends nothing. **3. Set the conditions** Under **When should this fire?**, add conditions and groups. Within a group, pick whether all or any of them must match. **4. Pick the template and recipients** Choose a [template](#templates) under **What message should we send?**. Under **Who should receive it?**, pick **Agent on the interaction** or **Specific email addresses**, and tick **CC the agent's team lead** to copy their current team lead. > [!TIP] > > The trigger appears on **Setup**, and every email it sends shows on the **History** tab. ![Edit trigger form: name Share QA reviews with the agent, use case EMI collections, A QA reviews a call selected, the condition Parameters the QA Changed at least 1, message QA Review Shared, and a preview of the email with the QA score, AI score and the QA's comments](https://mintcdn.com/ringgai-0da73d20/CZ_hnbckkb2zP9lz/media/analytics-notifications/qa-trigger.webp?fit=max\&auto=format\&n=CZ_hnbckkb2zP9lz\&q=85\&s=b98f7267af06725e48921330d9e39029) A trigger that shares QA reviews with the agent ## Conditions | Condition | Available for | Means | | - | - | - | | **Overall Score** | Both | The call's official score, 0 to 100 | | **Max Severity** | Both | The most severe classification on the call | | **Source Type** | Both | Call, email or meeting | | **Fatal Parameter Count** | Both | Fatal parameters the call missed | | **Min Category Score** | Both | The lowest category score | | A parameter, by name | Both | Whether the AI gave it full marks (Yes / No), Yes / Maybe / No, or its share of points | | **QA Score** | QA reviews | The QA's score: their ratings, the AI's for parameters they didn't rate, 0 if marked fatal | | **QA Score minus AI Score** | QA reviews | Negative when the QA scored lower than the AI | | **QA Marked Fatal** | QA reviews | Yes or No | | **QA Fatal Parameter Count** | QA reviews | Fatal parameters missed under the QA's ratings | | **Parameters the QA Changed** | QA reviews | How many parameters the QA rated differently from the AI | | QA: a parameter, by name | QA reviews | That parameter under the QA's rating | QA conditions can't be used with **The AI scores a call**: there is no review yet at that point. ## Templates A template is the email a trigger sends: a subject and a body built from blocks, with a live preview using sample data. Five come with every workspace, marked **System**: **Fatal Classification Alert**, **Low Score Alert**, **Classification Summary**, **General Notification** and **QA Review Shared**. Click **New template** under **Templates** to add your own, or **Edit** on one to change it. Type `@` in a block to insert a variable: | Variable | Filled with | | - | - | | `agent_name`, `interaction_title`, `overall_score`, `max_severity`, `summary` | The call and its official score | | `qa_score`, `ai_score`, `qa_score_change_text` | The QA's score, the AI's, and the difference, for example "−14 points vs the AI" | | `qa_reviewer_name`, `qa_reviewed_at`, `qa_fatal_reason` | Who reviewed, when (India time), and why they marked it fatal | | `qa_parameters` | A list of the parameters the QA rated or commented on, each with the AI's rating, the QA's rating and the comment | QA variables are empty in emails sent by **The AI scores a call** triggers. ## Send one email by hand Owners, admins and QAs can email an agent from their [report card](/analytics-platform/coach-agents/report-cards) with **Email**, using any template. ## Next steps > [card] [QA reviews](/analytics-platform/review-calls/qa-reviews) > > What a QA review contains. > [card] [Disputes](/analytics-platform/disputes/overview) > > Dispute emails go out on their own, with the team lead in CC. > [card] [Metrics](/analytics-platform/set-up/metrics) > > The parameters your conditions use. # Get All User Workspaces Source: https://docs.ringg.ai/api-reference/account/get-all-user-workspaces get /workspace/all List every workspace the API key's user can access, with role, credits and parent workspace, to see which workspaces are Ringg Spaces of a primary. A workspace with `parent_workspace_id` set is a [Ringg Space](/documentation/manage-account/ringg-spaces/ringg-spaces-by-api#manage-the-family-by-api) of that primary. ## Notes * Calls, campaigns and analytics always act on the workspace that owns the key. To work in another workspace from this list, use that workspace's own key. Related topics # Get Workspace Info Source: https://docs.ringg.ai/api-reference/account/get-workspace-info get /workspace Get the workspace that owns your API key, with its name, ID and credit balance; use it as the first request to confirm a key works and points where expected. ## Notes * A `401` means the key is wrong or was regenerated. Get the current key from the workspace owner ([API key](/documentation/manage-account/api-key)). * Check `name` before storing a key: each workspace and each [Ringg Space](/documentation/manage-account/ringg-spaces/overview) has its own key. Related topics # List Workspace Users Source: https://docs.ringg.ai/api-reference/account/list-workspace-users get /workspace/users List the members of your workspace with their user ID, name, email, role and invite status, for example to pick who gets a campaign completion email. Use the `id` values in `email_completion_user_ids` when starting a campaign ([number pool](/api-reference/calling/campaigns/start-campaign-v2) or [large campaign](/api-reference/calling/large-campaigns/make-large-campaign-calls-async)) to email those members when it completes. ## Notes * The API only reads members. Invite people and change roles in the dashboard. Related topics # Allocate Concurrency to a Ringg Space Source: https://docs.ringg.ai/api-reference/account/ringg-spaces/allocate-concurrency patch /workspace/sub/{sub_workspace_id}/concurrency Set how many concurrent calls one Ringg Space may run, out of the capacity bought on the primary; a new Ringg Space starts at 0 and cannot call. Allocations across all Ringg Spaces cannot exceed the capacity bought on the primary. The same call rebalances capacity between clients or teams later. ## Notes * `concurrency` is absolute, not a delta. Lowering an allocation always succeeds; raising it must fit `family.concurrency_available` from [Get Ringg Spaces](/api-reference/account/ringg-spaces/get-sub-workspaces). * `limit_concurrency` in the response is the persisted ceiling. In an individual-billing family it equals the allocation. In a common-billing family it is the family total, because idle capacity is shared, so it can be larger than `concurrency`. * This is the only allocation endpoint that applies to common-billing families; money is pooled on the primary there. * When `family.concurrency_available` reaches `0`, buy more capacity on the primary, then allocate the new slots here. ## Errors * `400`: `Only 30 concurrent calls are available to allocate from the parent workspace (capacity 50, 20 already allocated to other sub-workspaces).` — the allocation does not fit. * `400`: `Sub-workspaces cannot have their own sub-workspaces.` — the key belongs to a Ringg Space that has Ringg Spaces enabled. * `401`: Invalid or missing API key. * `403`: `Sub-workspaces are not enabled for this workspace.` — Ringg Spaces are not enabled on the primary, or the key belongs to a Ringg Space. * `404`: `Sub-workspace not found` — no active Ringg Space with this ID under your primary. * `422`: `sub_workspace_id` is not a UUID, or `concurrency` is negative or missing. Related topics # Create Ringg Space Source: https://docs.ringg.ai/api-reference/account/ringg-spaces/create-sub-workspace post /workspace/sub Create a Ringg Space under your primary workspace with one API call; it starts with no balance, concurrency or API key until you allocate to it. Use it for a client, brand or team that needs its own agents, numbers and call history. The Ringg Space's default agents and telephony are set up for it, and its currency, account type and billing plan are copied from the primary. ## Notes * Store the returned `sub_workspace.id`; every allocation call needs it. * The first Ringg Space you create turns the primary into a family in individual billing mode. Contact Ringg support if the family should use common billing instead. * Every member of the primary automatically gets access to the new Ringg Space. ## Errors * `400`: `Sub-workspaces cannot have their own sub-workspaces.` — the key belongs to a Ringg Space that has Ringg Spaces enabled. * `401`: Invalid or missing API key. * `403`: `Sub-workspaces are not enabled for this workspace.` — Ringg Spaces are not enabled on the primary, or the key belongs to a Ringg Space. * `422`: Missing or blank `name`, or a name longer than 100 characters. ## After creation Give the Ringg Space capacity with [Allocate Concurrency](/api-reference/account/ringg-spaces/allocate-concurrency) and, in an individual family, a [credit limit](/api-reference/account/ringg-spaces/reallocate-credit-limits) or [balance](/api-reference/account/ringg-spaces/reallocate-credit-balances). The response never contains an API key: generate one in the dashboard ([Ringg Spaces](/documentation/manage-account/ringg-spaces/ringg-spaces-by-api#manage-the-family-by-api)), then [create an agent](/api-reference/agents/create-agent) with that key. Related topics # Get Ringg Spaces Source: https://docs.ringg.ai/api-reference/account/ringg-spaces/get-sub-workspaces get /workspace/sub Get your whole Ringg Space family in one call: the primary's summary, each Ringg Space's allocation, members and month-to-date usage, and family totals. Use it for a tenant dashboard in your own admin tool, to check headroom before allocating concurrency or credit, and to reconcile per-client usage at month end. ## Reading the response * `family.concurrency_available` is what [Allocate Concurrency](/api-reference/account/ringg-spaces/allocate-concurrency) can still hand out; `family.available_pot` (prepaid) is what [Reallocate Credit Balances](/api-reference/account/ringg-spaces/reallocate-credit-balances) can still move out of the primary. * `family.is_individual_entity` tells you the billing mode: `true` for individual (each Ringg Space has its own wallet or limit), `false` for common (one pool on the primary). The keys present in `family` and in each row's `billing` depend on it; the response schema below lists them per mode. * `usage_this_period` is the value of completed calls since the 1st of the current month in the `Asia/Kolkata` timezone, in the workspace's billing currency. * Amounts are JSON numbers here (`200000.0`); the two allocation endpoints return decimal strings. ## Notes * Works on a primary with no Ringg Spaces yet; `sub_workspaces` is then an empty list. * Archived Ringg Spaces are not listed. ## Errors * `400`: `Sub-workspaces cannot have their own sub-workspaces.` — the key belongs to a Ringg Space that has Ringg Spaces enabled. * `401`: Invalid or missing API key. * `403`: `Sub-workspaces are not enabled for this workspace.` — Ringg Spaces are not enabled on the primary, or the key belongs to a Ringg Space. Related topics # List Family Members Source: https://docs.ringg.ai/api-reference/account/ringg-spaces/list-family-members get /workspace/sub/members List everyone with access to your Ringg Space family, whether they inherit access from the primary or were added to one Ringg Space, with permissions. Members of the primary (`scope: "primary"`) inherit access to every current and future Ringg Space; people added directly to a Ringg Space (`scope: "sub"`) see only the Ringg Spaces in their `sub_workspace_ids`. Use it for access audits across client or team workspaces, or to show who can reach a Ringg Space in your own admin tool. ## Notes * `permissions_by_workspace` already includes inherited rows, so render access from it rather than deriving it from `scope`. * The endpoint only reads. Add or remove people in the dashboard ([Workspace members](/documentation/manage-account/members)). ## Errors * `400`: `Sub-workspaces cannot have their own sub-workspaces.` — the key belongs to a Ringg Space that has Ringg Spaces enabled. * `401`: Invalid or missing API key. * `403`: `Sub-workspaces are not enabled for this workspace.` — Ringg Spaces are not enabled on the primary, or the key belongs to a Ringg Space. Related topics # Reallocate Credit Balances Source: https://docs.ringg.ai/api-reference/account/ringg-spaces/reallocate-credit-balances patch /workspace/sub/credit-balances Set every Ringg Space's wallet to an absolute balance, moving the difference to or from the primary, for prepaid families in individual billing mode. Use it to distribute a top-up made on the primary across clients or teams, or to pull unused balance back from one Ringg Space to fund another. ## Rules * The net amount moving out of the primary's pot cannot exceed what the pot holds. Top up on the primary first, then allocate. * A Ringg Space with a `0` balance cannot place calls; Ringg Spaces have no overdraft. * Every move is recorded in the workspace ledgers as a transfer, never as a charge. * In a common-billing family the wallet is shared on the primary and Ringg Spaces hold nothing, so this endpoint returns `400`. Allocate [concurrency](/api-reference/account/ringg-spaces/allocate-concurrency) instead. ## Notes * Read the current wallets and `family.available_pot` from [Get Ringg Spaces](/api-reference/account/ringg-spaces/get-sub-workspaces) first, then send the full map. * Amounts in the request can be JSON numbers (`200000`) or numeric strings (`"200000.00"`); they are rounded to two decimals. * Amounts in the response are decimal strings (`"5000.00"`), unlike the read endpoints. ## Errors * `400`: `Balance allocation applies to prepaid families only.` * `400`: `This family uses a shared balance; per-sub wallets do not exist.` * `400`: `allocations name workspaces that are not active sub-workspaces of this family: [...]` * `400`: `allocations must cover every active sub-workspace; missing: [...]` * `400`: `These allocations need 9000.00 from the primary's pot, which only holds 4000.00. Lower the allocations or add balance to the primary workspace first.` * `401`: Invalid or missing API key. * `403`: `Sub-workspaces are not enabled for this workspace.` — Ringg Spaces are not enabled on the primary, or the key belongs to a Ringg Space. * `404`: `Workspace is not a sub-workspace family parent.` — the primary has no Ringg Spaces yet. * `422`: Empty map, negative value, or a key that is not a UUID. Related topics # Reallocate Credit Limits Source: https://docs.ringg.ai/api-reference/account/ringg-spaces/reallocate-credit-limits patch /workspace/sub/credit-limits Set every Ringg Space's credit limit in one call, and optionally the family total, for postpaid Ringg Space families in individual billing mode. Use it to split the family's credit limit across clients or teams, or to raise one client's limit while keeping the total unchanged. ## Rules * Values are absolute limits, not deltas. * A Ringg Space's limit cannot go below what it has already used this month. * The sum of all allocations cannot exceed the family total. Allocating less than the total is allowed; the remainder stays with the primary. * What remains with the primary must still cover the primary's own utilized amount. * In a common-billing family there are no per-Ringg Space limits: every charge utilizes the primary's single credit limit, and this endpoint returns `400`. Allocate [concurrency](/api-reference/account/ringg-spaces/allocate-concurrency) instead. ## Notes * Read the current limits and usage from [Get Ringg Spaces](/api-reference/account/ringg-spaces/get-sub-workspaces) first, then send the full map. * Amounts in the request can be JSON numbers (`200000`) or numeric strings (`"200000.00"`); they are rounded to two decimals. * Amounts in the response are decimal strings (`"200000.00"`), unlike the read endpoints. ## Errors * `400`: `Credit-limit reallocation applies to postpaid families only.` * `400`: `This family uses common billing; per-sub credit limits do not exist.` * `400`: `Allocations must cover every active sub-workspace exactly once. Missing: [...]; unknown: [...].` * `400`: `Credit limit 100.00 for sub-workspace 'Mumbai Collections' is below its utilized amount 34210.50.` * `400`: `The total credit limit across sub-workspaces must not exceed the parent workspace's credit limit (500000.00); allocations sum to 600000.00.` * `400`: `These allocations would leave the primary workspace with 1000.00, below its already-utilized 12500.00. Lower the sub-workspace limits or raise the primary credit limit.` * `401`: Invalid or missing API key. * `403`: `Sub-workspaces are not enabled for this workspace.` — Ringg Spaces are not enabled on the primary, or the key belongs to a Ringg Space. * `404`: `Workspace is not a sub-workspace family parent.` — the primary has no Ringg Spaces yet. * `422`: Empty map, negative value, or a key that is not a UUID. Related topics # Create Agent Source: https://docs.ringg.ai/api-reference/agents/create-agent post /public/agent Create a single-prompt voice agent from a prompt, language, voice and first message, with optional call settings such as calling window and voicemail. Use it when your product sets up agents for its own customers from a template; for a one-off agent, the [dashboard](/documentation/build-agents/agents/create-an-agent) is quicker and also builds multi-prompt agents. The response returns the new agent's ID as `data.id`. Store it: calls and campaigns need it as `agent_id`. ## Prompt sections The prompt fields become the agent's prompt sections, in this order: | Field | Section in the dashboard | | - | - | | `introduction_and_objective` | Objective | | `response_guidelines` | Response Guidelines | | `task` | Conversation Script; `sample_conversations` is added at its end | | `faq` | FAQs (empty when `faq` is left out) | `intro_message` becomes the agent's first message. `primary_language` and `secondary_language` accept `en-US`, `en-GB`, `en-AU`, `en-IN`, `hi-IN`, `ta-IN`, `te-IN`, `bn-IN`, `mr-IN`, `kn-IN`, `ms-MY`, `zh-CN`, `od-IN`, `pa-IN` and `my-MM`. The voice must support the language, or the request returns `400` with code `VOICE_LANGUAGE_MISMATCH`. ## Call settings `call_config` sets how the agent's calls behave. Every key is optional; leave one out to keep its default. | Field | What it controls | Default | | - | - | - | | `call_time` | Daily calling window: `call_start_time` and `call_end_time` (`HH:MM`, 24-hour) in `timezone` | `09:00`–`21:00`, `Asia/Kolkata` | | `max_call_length` | Hard cap on call length, in seconds (10–3600) | `240` | | `idle_timeout_warning` | Seconds of caller silence (0–600) before the agent asks if they are still there; `0` turns the check-in off | `5` | | `idle_timeout_end` | Seconds of caller silence (1–600) before the call ends; must be greater than `idle_timeout_warning` | `10` | | `noise_filter_config` | Noise cancellation on the caller's audio: `filter_noise` on/off, `noise_suppression_level` 0–100 | off, `80` | | `voicemail` | `detect` voicemail, then `action`: `end`, `summarise`, or `static_message` (speaks the `static_message` text); `retry` re-queues the call | detect on, `end`, retry on | | `background_audio_config` | Ambient track under the agent's voice: `audio_id` (only `office_ambience`) and `volume` from `0.0` to `1.0` | off | | `mute_during_intro` | `true`: the caller cannot interrupt the first message | `true` | ```json theme={null} { "agent_name": "EMI reminder", "introduction_and_objective": "You are Asha, calling Acme Lending customers about an upcoming EMI.", "response_guidelines": "Be polite and brief. Confirm the due date before ending the call.", "task": "Remind the customer of the EMI due date and amount, and note if they want a callback.", "primary_language": "en-IN", "voice_id": "your-voice-id", "intro_message": "Hello, this is Asha from Acme Lending.", "call_config": { "call_time": { "call_start_time": "10:00", "call_end_time": "18:30", "timezone": "Asia/Kolkata" }, "max_call_length": 300, "idle_timeout_warning": 8, "idle_timeout_end": 20, "voicemail": { "detect": true, "action": "end", "retry": true }, "mute_during_intro": false } } ``` Get `voice_id` from [List voices](/api-reference/agents/get-assistant-voices). ### Calling window Outbound calls placed outside the window wait for the next opening, and so do retries. A campaign or an individual call can set its own window instead. The window may cross midnight: `22:00` to `06:00` is valid. `timezone` accepts any IANA zone, such as `America/New_York`, `Europe/London`, `Asia/Dubai`, `Australia/Sydney` or `UTC`. > [!WARNING] > > Use the `Region/City` form. `IST`, `PST` and `CST` are rejected. `EST`, `MST`, `HST` and `GMT` are accepted but never change for daylight saving, so an agent on `EST` calls an hour late for most of the year compared with `America/New_York`. ### Validation rules The request fails, rather than the agent's later calls, when: * a time is not zero-padded 24-hour (`09:00` works, `9:00` and `9:00 AM` do not); * `idle_timeout_warning` is not less than `idle_timeout_end`; * `background_audio_config.volume` is outside `0.0`–`1.0` (send `0.5`, not `50`). ## Notes * To change call settings after creation, use `edit_call_config` on [Edit agent settings](/api-reference/agents/edit-assistant), or [Call settings](/documentation/build-agents/customize-agent-behaviour/call-settings) in the dashboard. `PATCH /public/agent/{agent_id}` (Update Agent) changes the prompt fields, language, voice, first message, type and variables, but not `call_config`. * Before running a campaign, check the new agent with one [individual call](/api-reference/calling/individual-calls/initiate-individual-call). Related topics # Edit Agent Settings Source: https://docs.ringg.ai/api-reference/agents/edit-assistant patch /agent/v1 Change one setting on an existing agent per request, such as its prompt, voice, knowledge base, inbound number or webhook subscriptions, by operation name. Each request names an `operation` and carries the field that operation needs, so a prompt edit cannot overwrite the voice or the webhooks by accident. ## Operations and fields | `operation` | Field to send | | - | - | | `edit_prompt` | `agent_prompt` | | `edit_call_config` | `call_config` | | `edit_agent_display_name` | `agent_display_name` | | `edit_intro_message` | `intro_message` | | `edit_voice` | `voice_id`, plus `language` (a voice must support the language); optional `secondary_voice_id` | | `edit_voice_speed` | `voice_speed` | | `edit_noise_settings` | `mute_during_intro` and `mute_while_bot_speaking`, both required | | `edit_vocab` | `vocab` | | `edit_query_phrases` | `pre_query_response_phrases`, optional `pre_query_phrase_probability` | | `edit_vad_settings` | `vad_settings` | | `edit_custom_vars` | `custom_variables` | | `attach_kb`, `remove_kb` | `kb_id` | | `attach_inbound_number`, `remove_inbound_number` | `number_id` | | `edit_agent_whitelisted_domains` | `whitelisted_domains` (web agents) | | `edit_chat_settings` | `chat_settings` (WhatsApp agents) | | `edit_event_subscriptions` | `event_subscriptions` | `agent_id` is required on every request. Without `version_id`, the change applies to the agent's active version; send `version_id` to change another version. An unknown operation, or a missing field, returns `422`. ## Replace or merge * `edit_prompt` replaces the whole prompt. Send every section; a section you leave out is deleted. * `edit_call_config` merges: only the keys you send change, and nested objects such as `voicemail` merge key by key. * `edit_custom_vars`, `edit_vocab`, `edit_query_phrases`, `edit_vad_settings`, `edit_agent_whitelisted_domains` and `edit_event_subscriptions` replace the current value with the one you send. An outbound agent must keep `callee_name` and `mobile_number` in `custom_variables`, or the request returns `403`. ```json theme={null} { "operation": "edit_call_config", "agent_id": "your-agent-id", "call_config": { "max_call_length": 300, "voicemail": { "detect": true, "action": "end" } } } ``` ## Webhook subscriptions `edit_event_subscriptions` replaces the agent's whole subscription list with the one you send. Read the current list first and send it back with your change, or you will delete the subscriptions you left out. ```json theme={null} { "operation": "edit_event_subscriptions", "agent_id": "your-agent-id", "event_subscriptions": [ { "event_type": ["all_processing_completed"], "callback_url": "https://api.example.com/webhooks/ringg", "method_type": "POST", "headers": { "Authorization": "Bearer your-webhook-receiver-token" } } ] } ``` Each event type can have up to 4 subscriptions on one agent. Call events (`call_started`, `call_ringing`, `call_ongoing`, `call_completed`, `recording_completed`) apply to voice agents and `chat_completed` to WhatsApp agents; subscribing to an event the agent's channel never sends returns `400`. ## Notes * Place one test [individual call](/api-reference/calling/individual-calls/initiate-individual-call) after a change, before the agent runs a campaign. * Call settings such as the calling window and voicemail handling are changed with `edit_call_config`, or in the dashboard under [Call settings](/documentation/build-agents/customize-agent-behaviour/call-settings). Related topics # Get Agent Source: https://docs.ringg.ai/api-reference/agents/get-assistant-by-id get /agent/{agent_id} Get one agent's configuration by its agent_id to confirm the agent exists in this workspace and check its name, type and settings before you call with it. The agent is returned under `agents` as an object. Agent-level fields, such as `agent_display_name`, `agent_type` and `active_agent_version_id`, sit at the top; each version's language, voice, prompt (`agent_config`), tools, knowledge bases, `call_config` and `event_subscriptions` sit under `version_details`, keyed by version ID. For an outbound-inbound agent, add `type=inbound` to get its inbound settings. A `404` means no agent with that ID exists in the workspace that owns the API key. Use it to check that an `agent_id` stored in your system still points at the agent you expect, for example after a call behaved unexpectedly. Related topics # List Voices Source: https://docs.ringg.ai/api-reference/agents/get-assistant-voices get /agent/voices List the voices you can give an agent, with their supported languages, preview audio and gender, optionally filtered by one or more language codes. Pass the chosen voice's `id` as `voice_id` when you [create an agent](/api-reference/agents/create-agent) or change its voice. ## Notes * A voice works only in the languages listed in its `languages`. Pairing a voice with a language it does not support returns `400`. Related topics # List Agents Source: https://docs.ringg.ai/api-reference/agents/get-assistants get /agent/all List the agents in your workspace with their IDs, display names and types, so your backend can pick the agent_id that calls and campaigns need. ## Notes * Without `limit`, every agent is returned. `search` filters by name. * Each agent lists its `versions` (`version_id`, `version_slug`, `is_archived`). Prompt, voice and other settings are not included; use [Get agent](/api-reference/agents/get-assistant-by-id). * An agent's ID does not change when the agent is edited, so look it up once during setup and store it rather than fetching it before every [call](/api-reference/calling/individual-calls/initiate-individual-call) or [campaign](/api-reference/calling/campaigns/upload-campaign-contact-list). * For one agent's full configuration, call [Get agent](/api-reference/agents/get-assistant-by-id). Related topics # Get All Campaigns Source: https://docs.ringg.ai/api-reference/calling/campaigns/get-all-campaigns get /campaign/all List the campaigns in your workspace with their status, schedule and contact counts, to follow each campaign from upload to completion. A campaign's `id` is the `list_id` or `bulk_list_id` returned when its list was uploaded, so you can match rows to the campaigns you created. ## Statuses | `campaign_status` | Meaning | | - | - | | `verifying` | The uploaded list is being validated | | `draft` | Validated, calls not started | | `insufficient_balance` | The workspace balance does not cover the list. Listing the campaigns re-checks it and moves it back to `draft` once the balance covers it | | `preparing` | Launched; calls are being prepared | | `scheduled` | Calls are waiting for the start time | | `ongoing` | Calls are being placed | | `completed` | The campaign has finished | | `terminated` | Stopped with [Terminate calls](/api-reference/calling/campaigns/stop-campaign) | | `no_valid_contacts` | Every row in the list was invalid | | `failed` | The list or the launch failed | | `processing` | A workflow campaign is being prepared | | `null` | The row is a list that is not a campaign, such as a contact list | ## Notes * `limit` defaults to `10`; page with `offset`. * `total_calls` is the number of valid contacts loaded from the list, not the number of calls placed. It is `0` until the list has been validated. `invalidated_rows_count` is the number of rows dropped as invalid. * Rows in `insufficient_balance` also carry `additional_balance_required`, the extra balance needed, as a decimal string. * For the calls inside one campaign, use [call history](/api-reference/monitoring/call-history/get-call-history) with `bulk_list_id`. Related topics # Start Campaign Source: https://docs.ringg.ai/api-reference/calling/campaigns/start-campaign post /campaign/start Start a campaign uploaded with POST /campaign/save using caller numbers you list in from_numbers; the campaign then moves to scheduled or ongoing. To let Ringg choose caller numbers from a [number pool](/documentation/inventory/phone-numbers/number-pools) instead, use [Start campaign (number pool)](/api-reference/calling/campaigns/start-campaign-v2). `list_id` is the one returned by [Upload campaign contact list](/api-reference/calling/campaigns/upload-campaign-contact-list); `agent_id` is the agent the list was uploaded for; `from_numbers` are workspace numbers from [List workspace numbers](/api-reference/inventory/numbers/get-workspace-numbers): send each number's `id` (recommended), or the number written exactly as it is listed there. Each retry dials the next number in the list. ```json theme={null} { "agent_id": "your-agent-id", "list_id": "123e4567-e89b-12d3-a456-426614174000", "from_numbers": ["00000000-0000-4000-8000-000000000109"] } ``` A success returns `{"status": "campaign registered successfully!"}` and the campaign's `campaign_status` becomes `scheduled` or `ongoing` in [Get all campaigns](/api-reference/calling/campaigns/get-all-campaigns). The workspace balance must cover the campaign ([Billing](/documentation/manage-account/billing)); otherwise the request returns `402`. ## Errors * `400`: an ID is wrong, a caller number is not in the workspace (`From numbers not found: …`), or the campaign has already started. * `402`: the balance does not cover the campaign. * `401`: `X-API-KEY` is missing or invalid. Related topics # Start Campaign (Number Pool) Source: https://docs.ringg.ai/api-reference/calling/campaigns/start-campaign-v2 post /campaign/v2/start Start a campaign uploaded with POST /campaign/save, taking caller numbers from a number pool that rotates numbers and skips ones flagged as spam. `list_id` is the one returned by [Upload campaign contact list](/api-reference/calling/campaigns/upload-campaign-contact-list); `agent_id` is the agent the list was uploaded for. Copy `number_pool_id` with **Copy pool ID** on the **Number pools** page ([Number pools](/documentation/inventory/phone-numbers/number-pools)). `email_completion_user_ids` are workspace user IDs from [List workspace users](/api-reference/account/list-workspace-users). ```json theme={null} { "agent_id": "your-agent-id", "list_id": "123e4567-e89b-12d3-a456-426614174000", "number_pool_id": "your-number-pool-id" } ``` The response, the balance requirement and the errors are the same as for [Start campaign](/api-reference/calling/campaigns/start-campaign). Related topics # Terminate Calls by Campaign ID Source: https://docs.ringg.ai/api-reference/calling/campaigns/stop-campaign PATCH /campaign/terminate Stop a campaign by cancelling all of its queued and retry calls with PATCH /campaign/terminate; its status changes to terminated and no new calls go out. **X-API-KEY** `string` *required* Your Ringg AI API key. **campaign\_id** `string` *required* The campaign's ID: `id` from [Get all campaigns](/api-reference/calling/campaigns/get-all-campaigns), which is also the `list_id` or `bulk_list_id` returned when the list was uploaded. Example: `00000000-0000-4000-8000-000000000103` ```bash cURL theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "campaign_id": "00000000-0000-4000-8000-000000000103" }' ``` ```json 200 theme={null} { "message": "Calls terminated successfully!" } ``` ## What happens * Calls with status `registered` (queued) or `retry` are cancelled (`cancelled`, sub-status `USER_TERMINATED`); calls in other campaigns are not affected. * A call already in progress is not hung up. It ends normally and is not retried afterwards. * Completed calls are not affected. * The campaign's status becomes `terminated`. * To call the remaining contacts later, create a new campaign. ## Errors * `200` is returned even when no call matched the ID; check the calls in [call history](/api-reference/monitoring/call-history/get-call-history). * `401`: `X-API-KEY` is missing or invalid. * `422`: no field, more than one way of choosing calls at once, or a field of the wrong type. Related topics # Terminate Calls by Campaign Numbers Source: https://docs.ringg.ai/api-reference/calling/campaigns/stop-campaign-numbers PATCH /campaign/terminate Stop calls to up to 100 phone numbers inside one campaign while the rest of it keeps running, for example when a contact asks not to be called again. The same numbers in other campaigns are still called; to stop a number everywhere, use [by numbers](/api-reference/calling/individual-calls/stop-calls-to-numbers). **X-API-KEY** `string` *required* Your Ringg AI API key. **campaign\_id** `string` *required* The campaign's ID. Example: `00000000-0000-4000-8000-000000000103` **mobile\_numbers** `string[]` *required* Up to 100 numbers, each with country code. Example: `["+919876543210", "+919876543211"]` ```bash cURL theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "campaign_id": "00000000-0000-4000-8000-000000000103", "mobile_numbers": ["+919876543210", "+919876543211"] }' ``` ```json 200 theme={null} { "message": "Calls terminated successfully!" } ``` ## Errors * `400`: a number has no call, or no call that can still be terminated, for example `Mobile numbers not found in campaign: …`. * `401`: `X-API-KEY` is missing or invalid. * `422`: no field, more than 100 numbers, or a field of the wrong type. Related topics # Upload Campaign Contact List Source: https://docs.ringg.ai/api-reference/calling/campaigns/upload-campaign-contact-list post /campaign/save Upload a campaign calling list as CSV with the agent, variable mapping, country code, campaign window and call settings, and get the list_id to start it with. Nothing is dialled yet: start the campaign with [Start campaign (number pool)](/api-reference/calling/campaigns/start-campaign-v2) or [Start campaign](/api-reference/calling/campaigns/start-campaign). The `list_id` is also the campaign's ID in [Get all campaigns](/api-reference/calling/campaigns/get-all-campaigns), call history and analytics (`bulk_list_id`). ## The CSV One header row, then one row per contact. Every outbound agent has the variables `mobile_number` and `callee_name`, so the file needs a column for each, plus one for every other variable the agent's prompt uses. Write phone numbers without the country code; `country_code` applies to the whole list. ```text theme={null} callee_name,mobile_number,amount_due,due_date Priya Sharma,9876543210,4500,12 October Rahul Verma,9876540123,1200,15 October ``` [Calling list](/documentation/deploy/campaigns/calling-list) has the full file rules. ## Fields `campaign_start_time` and `campaign_end_time` are read in `call_config.call_time.timezone`, and the start must be in the future. Without `remove_invalid_rows`, a row that fails validation fails the whole upload with `400`, and the uploader is emailed the errors. A list may have up to 100 rows by default, and up to 5,000 once Company details are saved in the dashboard; a longer list returns `402`. `transliterate_fields` is a JSON array of the agent's own variable names, not CSV headers, whose values are transliterated into the agent's language; each must be mapped in `variables_map`, and `mobile_number` is not allowed. `transliterate_callee_name=true` is the same as adding `callee_name`; both can be sent. `variables_map` for the CSV above: ```json theme={null} {"callee_name": "callee_name", "mobile_number": "mobile_number", "amount_due": "amount_due", "due_date": "due_date"} ``` `call_config` is a JSON string with the daily window calls may be placed in and how failed calls are retried. Retry waits are in minutes. ```json theme={null} { "call_time": { "call_start_time": "09:00", "call_end_time": "18:00", "timezone": "Asia/Kolkata" }, "call_retry_config": { "retry_count": 2, "retry_busy": 30, "retry_not_picked": 30, "retry_failed": 30 } } ``` ## Response ```json theme={null} { "message": "Contacts imported successfully!", "list_id": "123e4567-e89b-12d3-a456-426614174000", "total_rows": 100, "successful_rows": 98, "failed_rows": 2 } ``` Related topics # Initiate Individual Call Source: https://docs.ringg.ai/api-reference/calling/individual-calls/initiate-individual-call post /calling/outbound/individual Place one outbound call with an agent to one phone number, passing a caller number, the variables the prompt uses, and optional retry and timing settings. Use it for calls triggered by an event in your product, such as a missed EMI or a new lead, and to [test an agent](/documentation/build-agents/test-and-improve/test-an-agent) before a campaign. To have Ringg choose the caller number from a [number pool](/documentation/inventory/phone-numbers/number-pools) (rotation and spam skipping), use the [number-pool variant](/api-reference/calling/individual-calls/initiate-individual-call-v2). `agent_id` comes from [List agents](/api-reference/agents/get-assistants) and `from_number_id` from [List workspace numbers](/api-reference/inventory/numbers/get-workspace-numbers). Send `from_number_id` or `from_number`, not both. When the agent version has its own outbound numbers, those are used instead, and both fields may be left out. `name` is used as `callee_name` when `custom_args_values` does not set one. ```json theme={null} { "name": "John Doe", "mobile_number": "+919876543210", "agent_id": "your-agent-id", "from_number_id": "your-from-number-id", "custom_args_values": { "callee_name": "John", "order_id": "ORD-1042" } } ``` The response's `data.call_id` identifies the call in [call details](/api-reference/monitoring/call-history/get-call-details), [call history](/api-reference/monitoring/call-history/get-call-history) and [webhook payloads](/documentation/build-agents/customize-agent-behaviour/webhooks/call-events). Store it with your own record. ## Call settings for this call `call_config` overrides the agent's settings for this call only: * `max_call_length` (seconds), `idle_timeout_warning` and `idle_timeout_end` (seconds of silence); * `call_time`: `call_start_time`, `call_end_time` (`HH:MM`) and `timezone`, the window the call may be placed in, and `scheduled_at` to place the call later; * `call_retry_config`: `retry_count`, and the wait in minutes before retrying a busy (`retry_busy`), unanswered (`retry_not_picked`) or failed (`retry_failed`) call. ```json theme={null} { "call_config": { "call_time": { "call_start_time": "09:00", "call_end_time": "18:00", "timezone": "Asia/Kolkata" }, "call_retry_config": { "retry_count": 1, "retry_busy": 30, "retry_not_picked": 30, "retry_failed": 30 } } } ``` ## Schedule the call `call_config.call_time.scheduled_at` places the call later. Write it as a local time without an offset, `YYYY-MM-DDTHH:MM:SS`, in `call_time.timezone` (the agent's timezone when that is not sent). It must be in the future; a time outside the calling window moves to the next opening. ```json theme={null} { "call_config": { "call_time": { "scheduled_at": "2026-10-18T15:30:00", "timezone": "Asia/Kolkata" } } } ``` The response says "Call has been scheduled successfully for …" and returns `data.scheduled_at`, `data.scheduled_timezone` and `data.scheduled_time_utc`. ## Call limits and deadlines The workspace and agent [call limits](/documentation/manage-account/call-limits) apply to calls placed by API. The request is still accepted with `200`; the limit is checked just before dialling. * `call_validity_hours` and `call_deadline` give the call a deadline. A call held by a limit waits until then (`call_status` `registered`, `call_sub_status` `FREQUENCY_DEFERRED`), and is cancelled with `DEADLINE_PASSED` if it has not been placed by the deadline. `call_validity_hours` counts from when the call is created, or from `scheduled_at`; when both are sent, the earlier deadline applies. * A call with no deadline is cancelled as soon as a limit blocks it (`cancelled`, `FREQUENCY_CAPPED`). * `purpose: "transactional"` marks a transactional call; the call limits do not apply to it. ```json theme={null} { "call_validity_hours": 6, "purpose": "transactional" } ``` ## Name formatting `smart_formatter` cleans `callee_name` before the call. `extract_first_name` drops titles and keeps the first name (`Mr Rajesh Kumar` becomes `Rajesh`). `transliteration` also converts the name to `transliteration_language.target` (default `hi`) and turns on first-name extraction. The original name stays available as `original_callee_name` in `custom_args_values`. ```json theme={null} { "smart_formatter": { "extract_first_name": true, "transliteration": true, "transliteration_language": { "source": "en", "target": "hi" } } } ``` ## Troubleshooting | Symptom | Check | | - | - | | `401` | `X-API-KEY` is missing or the key was regenerated. | | `400` | No caller number and no outbound numbers on the agent version, a Ringg test number as the caller number, or a missing variable in `custom_args_values`. | | `402` | The balance, or the available credit limit, does not cover the call. | | `422` | A required field is missing or has the wrong type, or both `from_number_id` and `from_number` are set. | | The call stays `registered` | The current time is outside `call_time`, or a call limit is holding it (`call_sub_status` `FREQUENCY_DEFERRED`). | | The agent says the wrong name or value | A `custom_args_values` key does not match the variable name in the prompt. | Related topics # Initiate Individual Call (Number Pool) Source: https://docs.ringg.ai/api-reference/calling/individual-calls/initiate-individual-call-v2 post /calling/v2/outbound/individual Place one outbound call with an agent and let Ringg pick the caller number from a number pool, or pass a caller number yourself; optionally override the voice. The [number pool](/documentation/inventory/phone-numbers/number-pools) rotates numbers and skips ones flagged as spam. ## Caller number Send at least one of these. With `number_pool_id`, Ringg picks the number from the pool and ignores the other two. Without a pool, outbound numbers set on the agent version are used before `from_number_id` or `from_number`. | Field | When to use it | | - | - | | `number_pool_id` | Ringg picks the number from the pool. Copy the ID with **Copy pool ID** on the **Number pools** page. | | `from_number_id` | A specific workspace number, from [List workspace numbers](/api-reference/inventory/numbers/get-workspace-numbers). | | `from_number` | A specific number written out with country code. | ```json theme={null} { "name": "John Doe", "mobile_number": "+919876543210", "agent_id": "your-agent-id", "number_pool_id": "your-number-pool-id", "custom_args_values": { "callee_name": "John", "order_id": "ORD-1042" } } ``` `name`, `mobile_number`, `agent_id`, `custom_args_values`, `smart_formatter`, `call_config`, `version_id`, `purpose`, `call_validity_hours` and `call_deadline` work as on [Initiate individual call](/api-reference/calling/individual-calls/initiate-individual-call). The response's `data.call_id` identifies the call everywhere else. ## Troubleshooting As for [Initiate individual call](/api-reference/calling/individual-calls/initiate-individual-call#troubleshooting), plus: | Symptom | Check | | - | - | | `422` | No caller number source, or both `from_number_id` and `from_number`. | | `400` | The pool does not exist (`Number pool not found`) or has no usable number (`Number pool has no available numbers`). | Related topics # Terminate All Calls by Agent ID Source: https://docs.ringg.ai/api-reference/calling/individual-calls/stop-agent-calls PATCH /campaign/terminate Stop every queued and retry call of one agent across all of its campaigns, for example when the agent is misbehaving and must not make more calls. **X-API-KEY** `string` *required* Your Ringg AI API key. **agent\_id** `string` *required* The agent's ID ([find it](/documentation/build-agents/agents/agent-types#find-the-agent-id)). Example: `00000000-0000-4000-8000-000000000110` ```bash cURL theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "agent_id": "00000000-0000-4000-8000-000000000110" }' ``` ```json 200 theme={null} { "message": "Calls terminated successfully!" } ``` Only outbound calls created in the last 7 days are cancelled. In-progress and completed calls are handled as for [by campaign](/api-reference/calling/campaigns/stop-campaign#what-happens); the agent's campaigns keep their status. ## Errors * `200` is returned even when no call matched the ID; check the calls in [call history](/api-reference/monitoring/call-history/get-call-history). * `401`: `X-API-KEY` is missing or invalid. * `422`: no field, more than one way of choosing calls at once, or a field of the wrong type. Related topics # Terminate Calls by Call IDs Source: https://docs.ringg.ai/api-reference/calling/individual-calls/stop-calls-by-id PATCH /campaign/terminate Cancel specific queued or retry calls by their call IDs, from the call response, call history or webhooks, without stopping the rest of the campaign. **X-API-KEY** `string` *required* Your Ringg AI API key. **call\_ids** `string[]` *required* The calls to cancel. Example: `["00000000-0000-4000-8000-000000000116", "00000000-0000-4000-8000-00000000010d"]` ```bash cURL theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "call_ids": ["00000000-0000-4000-8000-000000000116"] }' ``` ```json 200 theme={null} { "message": "Calls terminated successfully!" } ``` Only `registered` and `retry` outbound calls created in the last 7 days are cancelled. A call already in progress is not hung up; it ends normally and is not retried. Call IDs come from the [call response](/api-reference/calling/individual-calls/initiate-individual-call) (`data.call_id`), [call history](/api-reference/monitoring/call-history/get-call-history) (`id`) and [webhook payloads](/documentation/build-agents/customize-agent-behaviour/webhooks/call-events). ## Errors * `200` is returned even when no call matched the ID; check the calls in [call history](/api-reference/monitoring/call-history/get-call-history). * `401`: `X-API-KEY` is missing or invalid. * `422`: no field, more than one way of choosing calls at once, or a field of the wrong type. Related topics # Terminate Calls by Numbers Source: https://docs.ringg.ai/api-reference/calling/individual-calls/stop-calls-to-numbers PATCH /campaign/terminate Stop all queued and retry calls to up to 100 phone numbers across every campaign in the workspace, for example to honour an opt-out from all your calls. **X-API-KEY** `string` *required* Your Ringg AI API key. **mobile\_numbers** `string[]` *required* Up to 100 numbers, each with country code. Example: `["+919876543210", "+919876543211"]` ```bash cURL theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/campaign/terminate" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "mobile_numbers": ["+919876543210", "+919876543211"] }' ``` ```json 200 theme={null} { "message": "Calls terminated successfully!" } ``` ## Errors * `400`: a number has no call, or no call that can still be terminated, for example `Mobile numbers not found in campaign: …`. * `401`: `X-API-KEY` is missing or invalid. * `422`: no field, more than 100 numbers, or a field of the wrong type. Related topics # Check large campaign balance (Beta) Source: https://docs.ringg.ai/api-reference/calling/large-campaigns/check-large-campaign-balance post /campaign/check-balance/{bulk_list_id} Re-check the workspace balance for a large campaign that stopped at insufficient_balance, after a top-up, so it returns to draft and calls can start. Add balance first ([Billing](/documentation/manage-account/billing)), then call it with the `bulk_list_id` from [upload status](/api-reference/calling/large-campaigns/get-large-campaign-upload-status). When the response's `status` is `draft`, [start calls](/api-reference/calling/large-campaigns/make-large-campaign-calls-async) again with the same `bulk_list_id`; there is no need to upload the list again. If the balance is still short, `status` stays `insufficient_balance` and the response gives `required_credits` and `additional_balance_required`. A campaign in another status, or with no contacts or agent, returns `400`. [Get all campaigns](/api-reference/calling/campaigns/get-all-campaigns) runs the same check on every `insufficient_balance` campaign it lists. Related topics # Get large campaign upload status (Beta) Source: https://docs.ringg.ai/api-reference/calling/large-campaigns/get-large-campaign-upload-status get /campaign/upload-status/{bulk_list_id} Poll the validation status of a large campaign CSV by bulk_list_id until it is draft and ready to start, or fails, has no valid rows or lacks balance. Poll it every few seconds after [Upload large campaign CSV](/api-reference/calling/large-campaigns/upload-large-campaign-csv), until `status` stops changing. ## Statuses | `status` | Meaning | Next | | - | - | - | | `verifying` | Rows are still being validated | Keep polling | | `draft` | The list is valid and ready | [Start calls](/api-reference/calling/large-campaigns/make-large-campaign-calls-async) | | `no_valid_contacts` | Every row was invalid | Fix the CSV and upload it again | | `insufficient_balance` | The workspace balance does not cover the list | Add balance, then [re-check the balance](/api-reference/calling/large-campaigns/check-large-campaign-balance) | | `failed` | Validation could not finish | Upload again | The response also reports `total_callees`, the valid contacts loaded, and `invalidated_rows_count`, the rows that failed validation. After launch, `status` follows the campaign: `preparing`, `in_db`, `scheduled`, `ongoing`, `completed` or `terminated`. Related topics # Make large campaign calls async (Beta) Source: https://docs.ringg.ai/api-reference/calling/large-campaigns/make-large-campaign-calls-async post /campaign/make-call-async Schedule the calls of a validated large campaign: set the campaign window, calling hours, retries and caller numbers or a number pool for the bulk_list_id. Call it once the [upload status](/api-reference/calling/large-campaigns/get-large-campaign-upload-status) is `draft`. ## Fields `country_code` must be the same dialling code as the upload. Send exactly one of `from_numbers` or `number_pool_id`: both, or neither, returns `422`. `from_numbers` takes workspace number IDs from [List workspace numbers](/api-reference/inventory/numbers/get-workspace-numbers); a number that is not in the workspace makes the campaign `failed` after launch. `campaign_start_time` and `campaign_end_time` (`DD/MM/YYYY, HH:MM`) are required unless `call_slots` is sent, and go together. `email_completion_user_ids` are workspace user IDs from [List workspace users](/api-reference/account/list-workspace-users), emailed when the campaign completes. `call_config` has two parts: * `call_time`: `call_start_time` and `call_end_time` (`HH:MM`, defaults `09:00` and `21:00`) and `timezone` (default `Asia/Kolkata`) set the daily calling hours. They replace the agent's calling window for this campaign. `scheduled_at` (ISO 8601, in that timezone) schedules the start. * `call_retry_config`: `retry_count` (default `0`, so leaving the block out means no retries) and the wait in minutes before retrying a busy (`retry_busy`), unanswered (`retry_not_picked`) or failed (`retry_failed`) call, each defaulting to `30`. ```bash theme={null} curl --request POST "https://prod-api.ringg.ai/ca/api/v0/campaign/make-call-async" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "bulk_list_id": "123e4567-e89b-12d3-a456-426614174000", "agent_id": "your-agent-id", "country_code": "+91", "campaign_start_time": "18/10/2026, 09:00", "campaign_end_time": "18/10/2026, 18:00", "number_pool_id": "your-number-pool-id", "call_config": { "call_time": { "call_start_time": "09:00", "call_end_time": "18:00", "timezone": "Asia/Kolkata" }, "call_retry_config": { "retry_count": 1, "retry_busy": 30, "retry_not_picked": 30, "retry_failed": 30 } } }' ``` ## Calling slots `call_slots` limits dialling to exact windows, in `call_time.timezone`. Without `campaign_start_time` and `campaign_end_time`, the campaign runs from the first slot's start to the last slot's end. * `absolute`: dated `intervals`, each `{"start": "DD/MM/YYYY, HH:MM", "end": "DD/MM/YYYY, HH:MM"}`, up to 500. * `weekly`: `windows` of `days` (`mon` to `sun`) with `start` and `end` (`HH:MM`), up to 21, repeated until `until` (`DD/MM/YYYY, HH:MM`), at most 90 days ahead. Each slot lasts 1 minute to 24 hours, is not in the past and sits inside the daily `call_time` window; the last one must end at least 5 minutes from now. Mixing the two modes returns `422`. ```json theme={null} { "call_slots": { "mode": "weekly", "until": "31/10/2026, 18:00", "windows": [{ "days": ["mon", "wed", "fri"], "start": "10:00", "end": "13:00" }] } } ``` `concurrency_percentage` (0–100) is this campaign's share of the workspace's concurrent calls while several campaigns are ongoing; campaigns at `0` share what is left equally. ## Response ```json theme={null} { "message": "Campaign calls scheduled", "bulk_list_id": "123e4567-e89b-12d3-a456-426614174000", "status": "scheduled" } ``` A `402` means the balance does not cover the campaign: it moves to `insufficient_balance`. Add balance, run [Check large campaign balance](/api-reference/calling/large-campaigns/check-large-campaign-balance), then send this request again with the same `bulk_list_id`. Send each `bulk_list_id` once. Follow progress with [Get all campaigns](/api-reference/calling/campaigns/get-all-campaigns) and the calls with [call history](/api-reference/monitoring/call-history/get-call-history) filtered by the same `bulk_list_id`. Related topics # Upload large campaign CSV (Beta) Source: https://docs.ringg.ai/api-reference/calling/large-campaigns/upload-large-campaign-csv post /campaign/upload-csv Upload a calling list for validation in the background, and get the bulk_list_id you poll for status and then start calls with. The calling window, retries and caller numbers are not sent here; they go with [Start large campaign calls](/api-reference/calling/large-campaigns/make-large-campaign-calls-async). The flow: upload → poll [upload status](/api-reference/calling/large-campaigns/get-large-campaign-upload-status) until it is `draft` → [start calls](/api-reference/calling/large-campaigns/make-large-campaign-calls-async). ## Fields The CSV follows the same rules as for [Upload campaign contact list](/api-reference/calling/campaigns/upload-campaign-contact-list#the-csv). A list may have up to 100 rows by default, and up to 5,000 once Company details are saved in the dashboard; a longer list returns `402`. Contact Ringg for a higher limit. * Invalid rows never fail this upload: the valid rows load and the invalid ones are left out. With `remove_invalid_rows` off, the uploader is also emailed the invalid rows. * `transliterate_fields` is a JSON array of the agent's own variable names, not CSV headers, whose values are transliterated into the agent's language. Each must be mapped in `variables_map`, and `mobile_number` is not allowed. `transliterate_callee_name=true` is the same as adding `callee_name`. ```bash theme={null} curl --request POST "https://prod-api.ringg.ai/ca/api/v0/campaign/upload-csv" \ --header "X-API-KEY: $RINGG_API_KEY" \ --form 'agent_id="your-agent-id"' \ --form 'campaign_name="EMI reminders - October"' \ --form 'country_code="+91"' \ --form 'variables_map="{\"mobile_number\":\"mobile_number\",\"callee_name\":\"callee_name\"}"' \ --form 'remove_invalid_rows="true"' \ --form "file=@emi-reminders.csv" ``` ## Response ```json theme={null} { "message": "CSV uploaded successfully. Processing in background.", "bulk_list_id": "123e4567-e89b-12d3-a456-426614174000", "status": "verifying", "total_rows": 5000, "campaign_name": "EMI reminders - October" } ``` `total_rows` counts the rows in the file, not counting fully blank rows. Valid and invalid counts come from [upload status](/api-reference/calling/large-campaigns/get-large-campaign-upload-status) once validation finishes. Store `bulk_list_id`. It is the campaign's ID in every later call, in call history and in analytics. Related topics # API Overview Source: https://docs.ringg.ai/api-reference/introduction/api-overview Find the Ringg AI API base URL, resource groups, request formats, the IDs that link agents, numbers, campaigns and calls, and how errors and paging work. The Ringg AI API lets your backend do what the dashboard does for day-to-day calling: pick an agent, place calls, run campaigns, read call logs and analytics, and receive results by webhook. Building and editing agents is mostly done in the dashboard; the API covers creating an agent from a prompt and changing selected settings. ## Base URL and version ```text theme={null} https://prod-api.ringg.ai/ca/api/v0 ``` The version (`v0`) is part of the base URL. Some endpoints have a newer variant with its own path, for example `POST /calling/v2/outbound/individual` next to `POST /calling/outbound/individual`. ## Resources | Group | What you can do | | - | - | | [Workspace](/api-reference/account/get-workspace-info) | Check the key, read balance, members and the workspaces you can access | | [Ringg Spaces](/documentation/manage-account/ringg-spaces/ringg-spaces-by-api#manage-the-family-by-api) | Create client or team workspaces and allocate concurrency or money to them | | [Agents](/api-reference/agents/get-assistants) | List, read and create agents, list voices, change settings and webhook subscriptions | | [Knowledge bases](/api-reference/inventory/knowledge-bases/get-all-knowledge-bases) | Create and update knowledge bases from files, URLs and FAQs | | [Numbers](/api-reference/inventory/numbers/get-workspace-numbers) | List the caller numbers in the workspace | | [Calling](/api-reference/calling/individual-calls/initiate-individual-call-v2) | Place one outbound call | | [Campaigns](/api-reference/calling/campaigns/upload-campaign-contact-list) | Upload a calling list, start it, and track campaigns | | [Termination](/api-reference/calling/campaigns/stop-campaign) | Stop queued and retry calls by campaign, agent, call ID or number | | [Call history](/api-reference/monitoring/call-history/get-call-history) | List calls, fetch one call's transcript and recording, export to CSV | | [Analytics](/api-reference/monitoring/analytics/get-volume-analytics) | Call volume, connectivity, agent performance, latency, cohorts and chat metrics | ## Requests Send the API key in `X-API-KEY` on every request (see [Authentication](/api-reference/introduction/authentication)). Request and response bodies are JSON; set `Content-Type: application/json` on `POST` and `PATCH` requests with a JSON body. Endpoints that take a file (campaign CSVs, knowledge-base documents) use `multipart/form-data`. Let your HTTP client set that `Content-Type` so it includes the boundary; setting it by hand breaks the upload. ## IDs to store | ID | Where you get it | Where you use it | | - | - | - | | `agent_id` | `GET /agent/all`, or the agent page in the dashboard | Calls, campaigns, agent settings | | `from_number_id` | `GET /workspace/numbers` | Caller ID on individual calls and campaigns | | `number_pool_id` | The **Number pools** page in the dashboard | Caller ID from a [pool](/documentation/inventory/phone-numbers/number-pools) | | `list_id` / `bulk_list_id` | The campaign upload response | Starting the campaign; filtering history and analytics. It is also the campaign's ID | | `call_id` | The call response, call history, webhook payloads | Call details, deduplicating webhooks, support requests | ## Errors Failed requests return a `4xx` or `5xx` status and a JSON body with the reason in `message`: ```json theme={null} { "message": "Provide either from_number_id or from_number, not both" } ``` Some endpoints add keys beside `message`, such as `code` on [Create agent](/api-reference/agents/create-agent) (for example `VOICE_LANGUAGE_MISMATCH`). A `429` may carry its reason in `error` instead. Log the status code and the whole body. | Status | Meaning | | - | - | | `400` | The request is invalid, for example a campaign that already started or a caller number that is not in the workspace | | `401` | The API key is missing or invalid: `{"message": "Invalid credentials"}` | | `402` | The balance, or the available credit limit, does not cover the call or campaign | | `403` | The workspace or key cannot use this endpoint | | `404` | The agent, call, campaign or knowledge base was not found in this workspace | | `409` | The same request is already being processed, for example a call history export | | `422` | A field is missing or failed validation; `message` names the problem | | `424` | A provider the request depends on, such as your telephony account, rejected its credentials; `message` names the provider and reason. Fix the provider's credentials, not your Ringg API key | | `429` | Rate limit hit; retry later with backoff. Endpoint pages list their limits | | `5xx` | Server-side failure; retry with backoff and log the request and any `call_id` | ## Paging Paging differs by endpoint: | Endpoint | `limit` | `offset` | | - | - | - | | [Get call history](/api-reference/monitoring/call-history/get-call-history) | Default `10`, maximum `200` (more returns `400`) | Default `0` | | [Get all campaigns](/api-reference/calling/campaigns/get-all-campaigns) | Default `10` | Default `0` | | [List agents](/api-reference/agents/get-assistants) | Leave it out to get every agent | Default `0` | | [List workspace numbers](/api-reference/inventory/numbers/get-workspace-numbers) | Not paged: every number comes back | Not paged | ## Typical integration order 1. Check the key with [`GET /workspace`](/api-reference/account/get-workspace-info). 2. Pick an agent with [`GET /agent/all`](/api-reference/agents/get-assistants) and a caller number with [`GET /workspace/numbers`](/api-reference/inventory/numbers/get-workspace-numbers). 3. Place one test call with [`POST /calling/outbound/individual`](/api-reference/calling/individual-calls/initiate-individual-call). 4. Subscribe the agent to [webhook events](/documentation/build-agents/customize-agent-behaviour/event-subscription) so results reach your server without polling. 5. Move to [campaigns](/documentation/deploy/campaigns/campaigns-by-api#with-the-api) for lists of people, and to [call history](/api-reference/monitoring/call-history/get-call-history) and [analytics](/api-reference/monitoring/analytics/get-platform-analytics) for reporting. ## Next steps > [card] [Make your first call](/api-reference/introduction/quickstart) > > From API key to a ringing phone. > [card] [Run a campaign by API](/documentation/deploy/campaigns/campaigns-by-api#with-the-api) > > Upload a CSV and start calling it. # Authentication Source: https://docs.ringg.ai/api-reference/introduction/authentication Authenticate Ringg AI API requests by sending your workspace API key in the X-API-KEY header, check it with GET /workspace and handle 401 errors. The key decides which workspace the request acts on: agents, numbers, campaigns and call history all belong to that workspace. > [!WARNING] > > Keep the key on your server. Anyone who has it can place calls and spend your balance, so never put it in browser JavaScript, a mobile app, a public repository or a log line. ## Get your API key The workspace owner generates the key in the dashboard under **Settings → API Key** ([open it](https://www.ringg.ai/dashboard/settings/api-key)). New keys start with `rg_live_`; keys generated earlier may start with `ringg_live_` or be a plain UUID, and keep working. The full key is shown once, when it is generated; afterwards the page shows only a masked form. **Regenerate API Key** revokes the old key immediately, so update every service that uses it. ![API Key page showing Generated key as a prefix, dots and the last four characters, Created on 1 October 2026, and a Regenerate API Key button](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/account-api-key/key-masked.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=06aa09c17991ec0f9df881a2482ac76c) The masked key on Settings → API Key. [API key](/documentation/manage-account/api-key) walks through generating, storing and rotating the key. ## Send the key All endpoints share the base URL `https://prod-api.ringg.ai/ca/api/v0`. `GET /workspace` is the simplest request to check a key with. ```bash cURL theme={null} curl --request GET "https://prod-api.ringg.ai/ca/api/v0/workspace" \ --header "X-API-KEY: $RINGG_API_KEY" ``` ```javascript JavaScript theme={null} const response = await fetch("https://prod-api.ringg.ai/ca/api/v0/workspace", { headers: { "X-API-KEY": process.env.RINGG_API_KEY } }); if (!response.ok) { throw new Error(`Ringg API error: ${response.status} ${await response.text()}`); } const workspace = await response.json(); ``` A valid key returns the workspace it belongs to: ```json theme={null} { "workspace_info": { "id": "00000000-0000-4000-8000-00000000010f", "name": "Acme Lending", "created_at": "2026-04-15T10:30:00.000000+00:00", "credits": 3025.0, "locked_credits": 0.0 } } ``` If `name` is not the workspace you expected, the key belongs to another workspace. Each [Ringg Space](/documentation/manage-account/ringg-spaces/overview) has its own key. ## Protect the key in production * Load the key from a secret manager or an environment variable, not from source code. * Redact the `X-API-KEY` header in request logging. * Rotate the key as soon as you suspect it leaked. Rotation is a dashboard action; the API cannot create or rotate keys. * Alert on bursts of `401` responses: after a regeneration, they mean a service still has the old key. ## Error responses | Response | Meaning | Fix | | - | - | - | | `400 Bad Request` | The request sends both an `Authorization` header and `X-API-KEY` | Send only `X-API-KEY` | | `401 Unauthorized` | The key is missing, wrong, or was regenerated. The body is `{"message": "Invalid credentials"}` | Check the header name and value, then redeploy the current key | | `403 Forbidden` | The workspace cannot use this endpoint, for example Ringg Space endpoints when Ringg Spaces are not enabled | Contact Ringg support | Other statuses are listed in the [API overview](/api-reference/introduction/api-overview#errors). ## Next steps > [card] [Make your first call](/api-reference/introduction/quickstart) > > Use the key to place an outbound call with an agent. > [card] [API overview](/api-reference/introduction/api-overview) > > Base URL, resources, IDs and error format. # API quickstart Source: https://docs.ringg.ai/api-reference/introduction/quickstart Place your first Ringg AI phone call by API in 10 minutes: check your API key, pick an agent and a caller number, ring your own phone, then read the transcript. It takes five requests, and they are the path every Ringg build follows: an [agent](/documentation/build-agents/agents/agent-types), a number, a call, then the result in [Logs](/documentation/monitor/logs). ## Before you start > [card] [A Ringg workspace](/get-started/dashboard-tour#sign-in-for-the-first-time) > > Sign in to the dashboard. Only the workspace owner can generate the API key. > [card] [Balance](/documentation/manage-account/billing) > > Calls draw down your workspace balance. > [card] [A caller number of your own](/documentation/inventory/phone-numbers/buy-or-import-a-number) > > Buy or import one. Ringg's test numbers do not work from the API. You also need a phone you can answer. No number of your own, or no code? Open an agent in the dashboard, click **Test assistant** and call your phone from a Ringg test number instead: [Test an agent](/documentation/build-agents/test-and-improve/test-an-agent). All requests go to `https://prod-api.ringg.ai/ca/api/v0` and send your key in the `X-API-KEY` header. The examples read it from the `RINGG_API_KEY` environment variable; JavaScript uses `fetch` (Node.js 18 or later), Python uses `requests`. **1. Get an API key and check it** In the dashboard, go to **Settings → API key** and click **Generate API Key**. Copy the key from the dialog: it is shown only once. If the workspace already has a key, ask whoever holds it; **Regenerate API Key** revokes the old key at once. See [API key](/documentation/manage-account/api-key). ```bash theme={null} export RINGG_API_KEY="your-api-key" ``` Check the key with [Get Workspace Info](/api-reference/account/get-workspace-info), a read-only request. ```bash cURL theme={null} curl "https://prod-api.ringg.ai/ca/api/v0/workspace" \ -H "X-API-KEY: $RINGG_API_KEY" ``` ```javascript JavaScript theme={null} const res = await fetch("https://prod-api.ringg.ai/ca/api/v0/workspace", { headers: { "X-API-KEY": process.env.RINGG_API_KEY }, }); console.log(res.status, await res.json()); ``` ```python Python theme={null} import os import requests res = requests.get( "https://prod-api.ringg.ai/ca/api/v0/workspace", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, ) print(res.status_code, res.json()) ``` ```json Response (200) theme={null} { "workspace_info": { "id": "00000000-0000-4000-8000-000000000112", "name": "Acme Finance's Workspace", "created_at": "2024-12-16T13:03:29.947147+00:00", "credits": 3025, "locked_credits": 0 } } ``` > [!TIP] > > A `200` with your workspace's `name` means the key works. Check that `credits` is above zero before you place a call. **Likeliest error:** `401` with `"message": "Invalid credentials"`. The key is missing, mistyped or was regenerated. Copy it again, or regenerate it on the API key page. **2. Get an outbound agent** The call needs the ID of an outbound or outbound-inbound agent. Use one you have, or create one. **In the dashboard:** open **Assistants** in the sidebar. For an existing agent, open it and click the copy button beside its name in the top bar; the ID is also in the URL, `/assistants/`. To create one, click **Create agent**, choose the **Outbound** tab and a template, then follow [Create an agent](/documentation/build-agents/agents/create-an-agent). **With the API:** list your agents with [Get Assistants](/api-reference/agents/get-assistants) and pick one whose `agent_type` is `outbound` or `outbound_inbound`: ```bash theme={null} curl "https://prod-api.ringg.ai/ca/api/v0/agent/all" \ -H "X-API-KEY: $RINGG_API_KEY" ``` Or create one with [Create Agent](/api-reference/agents/create-agent). First get a `voice_id` that speaks your language from [Get Assistant Voices](/api-reference/agents/get-assistant-voices) (`GET /agent/voices?language=en-IN`). ```bash cURL theme={null} curl -X POST "https://prod-api.ringg.ai/ca/api/v0/public/agent" \ -H "X-API-KEY: $RINGG_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_name": "Quickstart agent", "agent_type": "outbound", "primary_language": "en-IN", "voice_id": "00000000-0000-4000-8000-00000000010e", "intro_message": "Hi, this is Asha from Acme Finance. Do you have a minute?", "introduction_and_objective": "You are Asha, a friendly assistant for Acme Finance. This is a test call to show how Ringg works.", "task": "Greet the caller by name, ask how their day is going, answer one question, then say goodbye.", "response_guidelines": "Keep replies short and warm. Never ask for personal or payment details." }' ``` ```javascript JavaScript theme={null} const res = await fetch("https://prod-api.ringg.ai/ca/api/v0/public/agent", { method: "POST", headers: { "X-API-KEY": process.env.RINGG_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ agent_name: "Quickstart agent", agent_type: "outbound", primary_language: "en-IN", voice_id: "00000000-0000-4000-8000-00000000010e", intro_message: "Hi, this is Asha from Acme Finance. Do you have a minute?", introduction_and_objective: "You are Asha, a friendly assistant for Acme Finance. This is a test call to show how Ringg works.", task: "Greet the caller by name, ask how their day is going, answer one question, then say goodbye.", response_guidelines: "Keep replies short and warm. Never ask for personal or payment details.", }), }); console.log(res.status, await res.json()); ``` ```python Python theme={null} import os import requests res = requests.post( "https://prod-api.ringg.ai/ca/api/v0/public/agent", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, json={ "agent_name": "Quickstart agent", "agent_type": "outbound", "primary_language": "en-IN", "voice_id": "00000000-0000-4000-8000-00000000010e", "intro_message": "Hi, this is Asha from Acme Finance. Do you have a minute?", "introduction_and_objective": "You are Asha, a friendly assistant for Acme Finance. This is a test call to show how Ringg works.", "task": "Greet the caller by name, ask how their day is going, answer one question, then say goodbye.", "response_guidelines": "Keep replies short and warm. Never ask for personal or payment details.", }, ) print(res.status_code, res.json()) ``` ```json Response (200) theme={null} { "success": true, "data": { "id": "00000000-0000-4000-8000-000000000104", "version": "v1", "version_id": "00000000-0000-4000-8000-000000000105", "created_at": "2024-12-16T13:03:29.947147+00:00" }, "message": "Agent created successfully" } ``` `data.id` is your `agent_id`. Outbound agents always get the variables `callee_name` and `mobile_number`. An agent created by API gets a calling window of 09:00 to 21:00 in `Asia/Kolkata` unless you set `call_config.call_time`; a call placed outside the window waits until it opens ([calling window](/documentation/build-agents/customize-agent-behaviour/call-settings#calling-window)). **Likeliest error:** `400` with code `VOICE_LANGUAGE_MISMATCH`, for example "Voice does not support language 'en-US'". Pick a `voice_id` whose `languages` include your `primary_language`. **3. Choose a caller number** The caller number is the number your phone will show. List your workspace's numbers with [Get Workspace Numbers](/api-reference/inventory/numbers/get-workspace-numbers): ```bash cURL theme={null} curl "https://prod-api.ringg.ai/ca/api/v0/workspace/numbers" \ -H "X-API-KEY: $RINGG_API_KEY" ``` ```javascript JavaScript theme={null} const res = await fetch("https://prod-api.ringg.ai/ca/api/v0/workspace/numbers", { headers: { "X-API-KEY": process.env.RINGG_API_KEY }, }); const { workspace_numbers } = await res.json(); console.log(workspace_numbers.filter((n) => !n.is_test_number)); ``` ```python Python theme={null} import os import requests res = requests.get( "https://prod-api.ringg.ai/ca/api/v0/workspace/numbers", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, ) print([n for n in res.json()["workspace_numbers"] if not n["is_test_number"]]) ``` ```json Response (200, one item, some fields left out) theme={null} { "workspace_numbers": [ { "id": "00000000-0000-4000-8000-000000000109", "number": "+919876540001", "agent": null, "is_test_number": false, "is_spam": false, "provider": "plivo", "display_name": "Sales Line", "number_pool_id": null } ] } ``` Pick a number with `"is_test_number": false` and `"is_spam": false` and copy its `id`: that is your `from_number_id`. In the dashboard, the same list is on **Numbers**, with a copy button for each ID. **Likeliest problem:** the list holds only Ringg's shared [test numbers](/documentation/inventory/phone-numbers/overview#test-numbers) (`"is_test_number": true`), which the dashboard's [test call](/documentation/build-agents/test-and-improve/test-an-agent) can use and the API cannot. [Buy or import a number](/documentation/inventory/phone-numbers/buy-or-import-a-number) first, or run this test from the dashboard instead. **4. Place the call to your own phone** Send [Initiate Individual Call](/api-reference/calling/individual-calls/initiate-individual-call) with your `agent_id`, your `from_number_id`, and your own number, with country code, as `mobile_number`. `custom_args_values` fills the agent's [variables](/documentation/build-agents/customize-agent-behaviour/custom-variables), such as `@{{callee_name}}` in the prompt. ```bash cURL theme={null} curl -X POST "https://prod-api.ringg.ai/ca/api/v0/calling/outbound/individual" \ -H "X-API-KEY: $RINGG_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Priya Sharma", "mobile_number": "+919876543210", "agent_id": "00000000-0000-4000-8000-000000000104", "from_number_id": "00000000-0000-4000-8000-000000000109", "custom_args_values": { "callee_name": "Priya" } }' ``` ```javascript JavaScript theme={null} const res = await fetch("https://prod-api.ringg.ai/ca/api/v0/calling/outbound/individual", { method: "POST", headers: { "X-API-KEY": process.env.RINGG_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Priya Sharma", mobile_number: "+919876543210", agent_id: "00000000-0000-4000-8000-000000000104", from_number_id: "00000000-0000-4000-8000-000000000109", custom_args_values: { callee_name: "Priya" }, }), }); const call = await res.json(); console.log(res.status, call.data?.call_id); ``` ```python Python theme={null} import os import requests res = requests.post( "https://prod-api.ringg.ai/ca/api/v0/calling/outbound/individual", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, json={ "name": "Priya Sharma", "mobile_number": "+919876543210", "agent_id": "00000000-0000-4000-8000-000000000104", "from_number_id": "00000000-0000-4000-8000-000000000109", "custom_args_values": {"callee_name": "Priya"}, }, ) print(res.status_code, res.json()["data"]["call_id"]) ``` ```json Response (200) theme={null} { "status": "success", "data": { "call_id": "00000000-0000-4000-8000-00000000010b", "call_direction": "outbound", "call_status": "ongoing", "initiated_at": "2025-11-24T07:33:49.629642", "agent_id": "00000000-0000-4000-8000-000000000104", "custom_args_values": { "callee_name": "Priya", "mobile_number": "+919876543210" } }, "message": "Call initiated successfully" } ``` Save `data.call_id`. `call_status` starts as `registered` (queued) or `ongoing`. A call that stays `registered` is waiting for the agent's calling window to open, or is held by a [call limit](/documentation/manage-account/call-limits). > [!TIP] > > Your phone rings and shows the caller number you picked. Answer it: the agent speaks its first message. Talk to it, then hang up. **Likeliest errors:** * `422` with `"message": "Provide either from_number_id or from_number, not both"`. Send `name`, `mobile_number` and `agent_id`, plus one of `from_number_id` or `from_number`. * `400` with `"message": "Default numbers are for testing only. Please provide a real phone number."`. The caller number is a Ringg test number; pick another one. * `402` with `"message": "Your current balance is insufficient to initiate this call!"`. Add balance ([Billing](/documentation/manage-account/billing)). **5. Read the result** After you hang up, fetch the call with [Get Call Details](/api-reference/monitoring/call-history/get-call-details). Add `send_analysis=true` to include the analysis. ```bash cURL theme={null} curl "https://prod-api.ringg.ai/ca/api/v0/calling/call-details?id=00000000-0000-4000-8000-00000000010b&send_analysis=true" \ -H "X-API-KEY: $RINGG_API_KEY" ``` ```javascript JavaScript theme={null} const callId = "00000000-0000-4000-8000-00000000010b"; const res = await fetch( `https://prod-api.ringg.ai/ca/api/v0/calling/call-details?id=${callId}&send_analysis=true`, { headers: { "X-API-KEY": process.env.RINGG_API_KEY } }, ); const { data } = await res.json(); console.log(data.call_status, JSON.parse(data.transcription_url ?? "[]")); ``` ```python Python theme={null} import json import os import requests res = requests.get( "https://prod-api.ringg.ai/ca/api/v0/calling/call-details", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, params={"id": "00000000-0000-4000-8000-00000000010b", "send_analysis": "true"}, ) data = res.json()["data"] print(data["call_status"], json.loads(data["transcription_url"] or "[]")) ``` ```json Response (200) theme={null} { "status": "success", "data": { "id": "00000000-0000-4000-8000-00000000010b", "call_direction": "outbound", "call_status": "completed", "call_sub_status": "ACCEPTED", "from_number": "+919876540001", "to_number": "+919876543210", "callee_name": "Priya Sharma", "agent_id": "00000000-0000-4000-8000-000000000104", "initiation_time": "2025-11-24T07:33:49Z", "recording_url": "https://example.com/recordings/call-123.mp3", "transcription_url": "[{\"bot\": \"Hi, this is Asha from Acme Finance. Do you have a minute?\"}, {\"user\": \"Sure, go ahead.\"}]", "platform_analysis": { "summary": "Caller agreed to talk and asked one question.", "key_points": ["Caller agreed to talk"], "action_items": [] } } } ``` | Field | What it holds | | - | - | | `call_status` | `registered`, `ongoing`, `retry`, `completed`, `failed`, `error`, `cancelled` or `forwarded` | | `call_sub_status` | The detail behind the status, for example `USER_DID_NOT_JOIN` or `MAX_CALL_DURATION` | | `transcription_url` | The conversation as a JSON-encoded string: parse it to get one object per turn (`bot` or `user`) | | `recording_url` | The recording. The link may expire; fetch the call again for a fresh link, and download the file if you need to keep it. | | `platform_analysis`, `client_analysis` | Ringg's analysis (summary, key points, action items, classification) and your [Advanced Analysis](/documentation/build-agents/customize-agent-behaviour/advanced-analysis) fields | Analysis runs after the call ends. Until it is ready, `platform_analysis` and `client_analysis` are left out of the response, so fetch again. The same call is at the top of [Logs](/documentation/monitor/logs) in the dashboard. Click it for **Call details**, the transcript and, if set up, **Advanced analysis**. To find it later, filter Logs by **Call ID**. > [!TIP] > > `call_status` is `completed` and the parsed `transcription_url` shows what you and the agent said. **Likeliest error:** `404` with `"message": "Call not found"`. Check that you passed `data.call_id` from step 4 as `id`, with the same workspace's key. ## Hand it to a coding agent The same five requests make a good first script. Paste this into Claude, Cursor or ChatGPT with your details filled in: Write a script that places a Ringg AI call and prints the transcript. Read [https://docs.ringg.ai/api-reference/quickstart.md](https://docs.ringg.ai/api-reference/quickstart.md). Write a script in \[LANGUAGE] that uses the Ringg AI API (base URL [https://prod-api.ringg.ai/ca/api/v0](https://prod-api.ringg.ai/ca/api/v0), header X-API-KEY read from the RINGG\_API\_KEY environment variable) to: 1) GET /agent/all and pick the agent named "\[AGENT NAME]"; 2) GET /workspace/numbers and pick the first number whose is\_test\_number and is\_spam are both false; 3) POST /calling/outbound/individual with name "\[NAME]", mobile\_number "\[+COUNTRY NUMBER]", that agent\_id and from\_number\_id, and a custom\_args\_values object whose callee\_name is "\[FIRST NAME]"; 4) poll GET /calling/call-details with id set to the returned call\_id and send\_analysis=true every 10 seconds until call\_status is completed, failed, error or cancelled; 5) print call\_status, call\_sub\_status, each turn of transcription\_url (a JSON-encoded string, so parse it first), and platform\_analysis.summary. Exit with a non-zero code on any non-200 response and print the response body. ## Get results pushed to you Polling Get Call Details is fine for a test. In production, subscribe the agent to events with [Event Subscription (webhooks)](/documentation/build-agents/customize-agent-behaviour/event-subscription) and Ringg posts to your server as the call progresses. **All Processing Done** (`all_processing_completed`) carries the transcript, recording and analysis in one request. Endpoint requirements are in [webhook setup](/documentation/build-agents/customize-agent-behaviour/webhooks/setup-and-errors). ## Before you go live * Keep the API key in a secret manager on your server. See [Security](/resources/security/security). * Store `agent_id`, `from_number_id` and each returned `call_id`; the `call_id` joins API responses, webhook events and Logs. * Send every `mobile_number` with its country code, for example `+919876543210`. * Send a `custom_args_values` key for every variable the prompt uses. * Set the calling window for your market in the agent's [call settings](/documentation/build-agents/customize-agent-behaviour/call-settings), and retries per call in `call_config.call_retry_config` or per [campaign](/documentation/deploy/campaigns/create-a-campaign). * Dedupe webhook events on `call_id` plus `event_type`, and return `2xx` quickly. See [Idempotency key](/documentation/build-agents/customize-agent-behaviour/webhooks/setup-and-errors#idempotency-key). ## Troubleshooting > [accordion] The call stays registered and my phone never rings > > The call is queued because the agent's calling window is closed. Check **Call start time**, **Call end time** and **Timezone** in the agent's [call settings](/documentation/build-agents/customize-agent-behaviour/call-settings#calling-window), or send your own `call_config.call_time` with the call. > [accordion] The call ended as failed or error > > Read `call_sub_status` in Get Call Details; the full list of values is in [Get Call Details](/api-reference/monitoring/call-history/get-call-details). Also check that the caller number is not a test number and is not flagged as spam on **Numbers**. > [accordion] The agent does not use my name > > The prompt uses a variable you did not send, or sent under a different key. Add it to `custom_args_values`, for example `"callee_name": "Priya"`. See [Variables](/documentation/build-agents/customize-agent-behaviour/custom-variables). ## Next steps > [card] [API reference](/api-reference/introduction/api-overview) > > Agents, calls, campaigns, numbers and results from your backend. > [card] [Improve the agent's prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt) > > Write the script, FAQs and rules your agent follows. > [card] [Run a campaign by API](/documentation/deploy/campaigns/campaigns-by-api#with-the-api) > > Upload a list and start calls in two requests. # Create Knowledge Base Source: https://docs.ringg.ai/api-reference/inventory/knowledge-bases/create-knowledge-base post /external/kb Create a knowledge base from files, web page URLs and FAQ pairs, processed in the background, then attach it to an agent so it can answer from that content. The response returns its `kb_id` with `processing_status` `pending`; poll [Get knowledge base](/api-reference/inventory/knowledge-bases/get-knowledge-base-by-id) until `status` is `completed`, then attach it to an agent with the `attach_kb` operation of [Edit agent settings](/api-reference/agents/edit-assistant). ## Content Send `kb_name` and any mix of `files`, `urls` and `faqs`; each FAQ is a `{"question", "answer"}` object. One request takes up to 10 files (2 MB each, 5 MB in total) and 20 URLs. Files are read by extension: PDF, DOCX, TXT, CSV (one entry per row) and JSON. Any other extension, such as `.md`, is read as plain text. Knowledge bases created with the API are not listed on the dashboard's **Knowledge Base** page. They do appear in the agent editor's knowledge base picker and in [Get all knowledge bases](/api-reference/inventory/knowledge-bases/get-all-knowledge-bases), which also lists the ones made in the dashboard. ```bash theme={null} curl --request POST "https://prod-api.ringg.ai/ca/api/v0/external/kb" \ --header "X-API-KEY: $RINGG_API_KEY" \ --form 'kb_name="Acme Lending FAQ"' \ --form 'urls="[\"https://example.com/faq\"]"' \ --form 'faqs="[{\"question\": \"Can I pay my EMI early?\", \"answer\": \"Yes, from the Acme app under Loans.\"}]"' \ --form "files=@loan-terms.pdf" ``` Related topics # Delete Knowledge Base Source: https://docs.ringg.ai/api-reference/inventory/knowledge-bases/delete-knowledge-base delete /external/kb/{kb_id} Delete a knowledge base and all of its files, URLs and FAQs permanently; agents that use it stop answering from it at once, so detach or replace it first. Attach a replacement first with the `attach_kb` operation of [Edit agent settings](/api-reference/agents/edit-assistant). To change only some content, use [Edit knowledge base](/api-reference/inventory/knowledge-bases/edit-knowledge-base) instead; it keeps the `kb_id` and the agents attached. Related topics # Edit Knowledge Base Source: https://docs.ringg.ai/api-reference/inventory/knowledge-bases/edit-knowledge-base patch /external/kb Add files, URLs or FAQs to a knowledge base and remove existing ones by ID in one request, keeping its kb_id and the agents it is attached to. New content is processed in the background, as on creation. ## Add content * `new_files`: 2 MB each, 5 MB in total, with optional `new_files_metadata` * `new_faqs`: each FAQ is a `{"question", "answer"}` object ## Remove content Pass IDs from [Get knowledge base](/api-reference/inventory/knowledge-bases/get-knowledge-base-by-id). Removal is permanent. ```bash theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/external/kb" \ --header "X-API-KEY: $RINGG_API_KEY" \ --form 'kb_id="550e8400-e29b-41d4-a716-446655440000"' \ --form 'files_to_remove="[\"7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d\"]"' \ --form 'urls_to_remove="[\"https://example.com/old-page\"]"' \ --form 'new_urls="[\"https://example.com/new-docs\"]"' ``` Related topics # Get All Knowledge Bases Source: https://docs.ringg.ai/api-reference/inventory/knowledge-bases/get-all-knowledge-bases get /external/kb/all List every knowledge base in your workspace with its kb_id, name, type and creation date, for example to fill a picker when attaching one to an agent. The endpoint does not page; it returns every knowledge base in one response. Cache the list if you show it often. For files, URLs, FAQs and processing status, call [Get knowledge base](/api-reference/inventory/knowledge-bases/get-knowledge-base-by-id). Related topics # Get Knowledge Base by ID Source: https://docs.ringg.ai/api-reference/inventory/knowledge-bases/get-knowledge-base-by-id get /external/kb/{kb_id} Get one knowledge base with its processing status and every file, URL and FAQ in it, including the IDs you need to remove items with the edit endpoint. Each item has a `file_id`, which is the ID [Edit knowledge base](/api-reference/inventory/knowledge-bases/edit-knowledge-base) takes to remove it. ## Notes * Poll this endpoint after creating or editing until `status` is `completed`. Large files or many URLs can take several minutes. * Files carry `filename`, `file_type` and `file_size` (bytes); URLs carry `url`; FAQs carry `content` with the question and answer. Related topics # Get Workspace Numbers Source: https://docs.ringg.ai/api-reference/inventory/numbers/get-workspace-numbers get /workspace/numbers List the phone numbers in your workspace with their IDs, provider, attached agent, spam flag and pool, to choose the caller number for calls and campaigns. Each number's `id` is the `from_number_id` that [individual calls](/api-reference/calling/individual-calls/initiate-individual-call) take as caller ID. Numbers appear here once they are bought or imported in the dashboard ([Buy and import numbers](/documentation/inventory/phone-numbers/buy-or-import-a-number)). The list is not paged: every matching number comes back in one response, newest first. Filter it with `telephony_account_id` (a connected telephony account's ID, or `ringg` for numbers provided by Ringg, including the shared test numbers) and `inbound_enabled` (`true` or `false`). ## Fields to check **agent** `object` The agent the number is attached to (`id`, `agent_display_name`); inbound calls to the number reach that agent. **is\_test\_number** `boolean` A shared Ringg [test number](/documentation/inventory/phone-numbers/overview#test-numbers): for testing only, not for live calls or number pools. **is\_spam** `boolean` The number has been flagged as spam; `spam_message` says why. Pick another number, or let a [number pool](/documentation/inventory/phone-numbers/number-pools) skip it. **number\_pool\_id** `string` The [number pool](/documentation/inventory/phone-numbers/number-pools) the number belongs to, if any. **provider** `string` The telephony provider behind the number; `ringg` for numbers on Ringg's own account. **owner** `string` `ringg` for a number on Ringg's account, `customer` for one on your own telephony account. **is\_relay** `boolean` `true` for a [WhatsApp Relay](/documentation/deploy/whatsapp/relay-overview) number. Related topics # Get Active Campaigns Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-active-campaigns get /analytics/v4/campaigns List your ongoing and completed campaigns with their ID, name and agent, to use as the bulk_list_id filter on the other analytics endpoints. Pass `agent_id` to list only that agent's campaigns. Use each `id` as `bulk_list_id` on the other analytics endpoints. ## Errors * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Agent Performance Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-agent-performance get /analytics/v4/agent-performance Get goal rate, latency and cost for your agents, a side-by-side comparison of agent versions, and call, minute and cost totals for each agent in scope. Returns the **Performance** cards and the agents table in [Analytics](/documentation/monitor/analytics). Pass two or more IDs in `agent_version_id` to compare versions in `version_comparison`. ## Notes * `summary` covers every version of the selected agents; `agent_version_id` changes only `version_comparison`. * `goal_rate` uses each call's own version goal (see [Where the goal comes from](/documentation/monitor/analytics#where-the-goal-comes-from)). It is `null` when no call in scope has a goal value. * `total_cost`, `cost` and `total_minutes` count completed calls only, in the workspace `currency`. * `client_analysis_key`, `client_analysis_value` and `client_analysis_type` narrow the result to calls with one [Advanced Analysis](/documentation/build-agents/customize-agent-behaviour/advanced-analysis) value, for example `disposition` equal to `interested`. * `assistants_in_action` lists agents with at least one call in scope, sorted by `call_count`. ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Chat Analytics Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-chat-analytics get /analytics/v4/chat-analytics Get web chat and WhatsApp session volume over time, sessions per channel, and engagement, resolution and goal metrics, filtered by date, agent or channel. Covers chats only; the other analytics endpoints cover calls. The dashboard's Analytics page doesn't show chats. ## Notes * `channel` takes chat channels such as `chat` or `whatsapp_meta_chat`, not the call channels. * `engaged_turns` sets how many user messages make a session `engaged` (default `1`). `resolved` counts completed sessions. * `goal_rate` uses each session's own version goal. ## Errors * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Cohort Breakdown Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-cohort-breakdown get /analytics/v4/cohort/breakdown Get calls, connection rate, goal rate and average handle time for each value of one analytics field, such as a disposition or a custom argument. Returns the data behind **Cohort analysis** in [Analytics](/documentation/monitor/analytics). Take `path` and `key` from [Get cohort dimensions](/api-reference/monitoring/analytics/get-cohort-dimensions). ## Notes * `path=custom_args` groups by a variable you sent when placing calls, for example `key=city`. * `path=retry_count` groups by retry attempt and ignores `key`. * `goal_rate` uses each call's own version goal and is `null` for values with no scored calls. ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Cohort Dimensions Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-cohort-dimensions get /analytics/v4/cohort/dimensions List the fields you can slice call analytics by: built-in fields such as sentiment, and the Advanced Analysis variables configured on your agent. Start here to build a cohort view. Pass a dimension's `path` and `key` to [Get cohort values](/api-reference/monitoring/analytics/get-cohort-values) for its values, or to [Get cohort breakdown](/api-reference/monitoring/analytics/get-cohort-breakdown) for metrics per value. ## Notes * Dimensions come from `agent_version_id`, else `agent_id`, else the agent that runs `bulk_list_id`. * Number fields are returned only with `include_numeric=true`, because they can't be grouped. * The goal variable appears as an ordinary Boolean field. ## Errors * `400`: an ID is malformed, or `sub_workspace_id` was sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Cohort Values Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-cohort-values get /analytics/v4/cohort/values Get the distinct values of one analytics field and how many calls have each, most frequent first, to fill a filter list or see how outcomes split. Take `path` and `key` from [Get cohort dimensions](/api-reference/monitoring/analytics/get-cohort-dimensions). For example, `path=client_analysis&key=disposition` lists every disposition your calls ended with. ## Notes * An invalid `path` or `key` returns `400`. ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Concurrency Trend Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-concurrency-trend get /analytics/v4/concurrency-trend Get your workspace's paid concurrency against the concurrency it received over time, hourly for up to two days and daily for longer date ranges. Returns the **Concurrency usage** chart in [Analytics](/documentation/monitor/analytics). If `received` keeps reaching `paid`, your calls are waiting on concurrency: raise it on [Billing](/documentation/manage-account/billing#change-concurrency). ## Notes * It covers the whole workspace and takes only the date range, `tz` and `sub_workspace_id`. * `granularity` is `hour` for ranges of two days or less and `day` otherwise. * `available` is `false` when there is no data for the range. ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Connectivity Analytics Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-connectivity-analytics get /analytics/v4/connectivity Get how many calls connected, the connectivity percentage, and which attempt each connected call got through on, filtered by date, agent, campaign or channel. Returns the data behind the **Connectivity** chart in [Analytics](/documentation/monitor/analytics). Use `by_retry_attempt` to judge whether more retries are worth it: `attempt_2` and later are calls that connected only after a retry. ## Notes * `connectivity_pct` runs from `0` to `100`, rounded to two decimals, unlike the `0` to `1` rates on other analytics endpoints. It is `0.0` when there are no calls. * `total` includes every call status, including registered, ongoing and retry calls. * For calls stopped by the campaign's end time or retry limit, read `volume.connection_rate` from [Get volume analytics](/api-reference/monitoring/analytics/get-volume-analytics). ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Data Freshness Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-data-freshness get /analytics/v4/data-freshness Get how up to date your workspace's analytics data is, as a data-as-of timestamp and lag in seconds, to label dashboards and decide when to refetch. Show `data_as_of` as a "data as of" label. `version` changes whenever new data lands, so refetch only when it differs from the last value you saw. ## Notes * `data_as_of` and `lag_seconds` are `null` and `version` is `0` before your workspace has any analytics data. ## Errors * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Latency Trend Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-latency-trend get /analytics/v4/latency-trend Get median and 95th-percentile agent response latency over time, filtered by date, agent, version, campaign or channel, to spot latency regressions. Plot `bucket` on the X-axis and `p50_ms` and `p95_ms` on the Y-axis. Compare before and after a prompt, model or voice change to catch regressions. ## Notes * `scored` is the number of calls in the bucket with latency data. Buckets with few scored calls are noisy. * Bucket size follows the date range: hour, day, week (labelled with the Monday) or month (labelled with the 1st). Pass `tz` to bucket in your timezone. ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Get Volume Analytics Source: https://docs.ringg.ai/api-reference/monitoring/analytics/get-volume-analytics get /analytics/v4/volume-graph Get headline call metrics with the change against the previous period, plus call volume over time, filtered by date, agent, version, campaign or channel. Returns the numbers behind the **Volume** cards and trend chart in [Analytics](/documentation/monitor/analytics). Each card has `count`, `previous` (the period of the same length just before) and `delta_pct`. ## Notes * `sum(by_bucket[].total)` equals `total.count`, and in each bucket `total = completed + failed + cancelled + registered + ongoing + retry`. * `total.campaign_count` and `total.api_count` split the current total by where calls came from. A callback counts toward its parent call's campaign. * `callback_count` always reports callback calls, whatever `include_callback` is set to. It overlaps `total` only when `include_callback=true`. * `connection_rate.campaign_time_exhausted` and `connection_rate.retry_exhausted` count calls stopped by the campaign's end time or retry limit. * `aht_seconds.duration_distribution` counts completed calls in four buckets: under 10 seconds, 10 to 30, 30 to 60, and 60 or more. * `unique_numbers_used` is the phone numbers your workspace owns, so it ignores the date range and filters. * With a call `channel` filter, chats are left out and `chat_total.count` is `0`. ## Errors * `400`: a filter is invalid, such as an unknown `channel`, a malformed ID, or `sub_workspace_id` sent from a workspace that isn't a primary workspace. * `401`: `X-API-KEY` is missing or invalid. Related topics # Download Call History Source: https://docs.ringg.ai/api-reference/monitoring/call-history/download-call-history post /calling/history/download Export call history to CSV by email, filtered by date range, agent, status, call type, campaign, number or call ID, with optional post-call analysis columns. The response only confirms the export was queued and lists who will get the link: `{"message": "Call history export has been queued. You will receive an email shortly.", "emails": ["owner@example.com"]}`. The download link arrives by email; large exports take several minutes. ## Choose who receives the export By default the link goes to the requester; with an API key, that is the workspace owner. To send it to specific teammates instead, add `email`. Repeat it for several people. > [!WARNING] > > **Each recipient must be a member of your workspace.** The export is only emailed to people who belong to the workspace: they were invited, accepted the invite, and haven't been removed. An address outside the workspace gets a `400` and no one receives the export. To send it to someone new, invite them to the workspace first. ```bash theme={null} curl --request POST \ --url 'https://prod-api.ringg.ai/ca/api/v0/calling/history/download?start_date=2025-09-25T00:00:00%2B05:30&end_date=2025-09-25T23:59:59%2B05:30&email=ops@example.com&email=qa@example.com' \ --header 'X-API-KEY: ' ``` * A comma-separated list (`email=ops@example.com,qa@example.com`) works too. * The link goes only to these addresses, one email each. The workspace owner is not copied. * Every address must belong to an active member of your workspace: invite accepted and not removed. Otherwise the request returns `400` naming the address, and no one is emailed. Invite them to the workspace first. ## Notes * `call_type` is `inbound`, `outbound` or `webcall`. The export covers every call that matches the filters. * `include_analysis=true` adds the platform and [Advanced Analysis](/documentation/build-agents/customize-agent-behaviour/advanced-analysis) results. * The CSV holds call details, status and timestamps, agent and campaign, transcript and recording links, and custom variables. * The emailed link is valid for 7 days and downloads a ZIP with one CSV. * Recording links in the export may expire; fetch a fresh link from [Get call details](/api-reference/monitoring/call-history/get-call-details). * `409` means the same export is already running; `429` means too many exports are running, so try again later. Related topics # Get Call Details Source: https://docs.ringg.ai/api-reference/monitoring/call-history/get-call-details get /calling/call-details Get one call by its call_id: status, numbers, agent, recording link and transcript, plus platform and advanced analysis when you set send_analysis=true. Pass the call's ID as `id`, the `call_id` you got when placing the call or from a webhook. ## Notes * `transcription_url` is the transcript as a JSON-encoded string, not an array: parse it to get one object per turn (`bot` or `user`). It is `null` when there is no transcript and `"[]"` for a call that never connected. * `platform_analysis` is Ringg's summary and classification; `client_analysis` is the result of your [Advanced Analysis](/documentation/build-agents/customize-agent-behaviour/advanced-analysis). Analysis runs after the call ends, and each key is left out of the response until it is ready. Leave `send_analysis` off when you only need status or the recording. * `call_metrics=true` adds the call's [eval](/documentation/monitor/evals) results in `data.metrics`, one entry per metric with `metric_name`, `score` and `explanation`. * When number masking is on for your workspace, `to_number` and any phone number in `custom_args_values` come back masked except the last 3 digits, for example `*********210`. * `recording_url` may expire. Call this endpoint again for a fresh link, and download the recording if you need to keep it. * A `404` means no call with that ID exists in the workspace that owns the API key. Related topics # Get Call History Source: https://docs.ringg.ai/api-reference/monitoring/call-history/get-call-history get /calling/history List calls in your workspace by date range, agent, status or campaign, with transcript, recording link, duration and cost, to reconcile results or backfill. Webhooks are the better fit for reacting to each call as it ends ([Event Subscription](/documentation/build-agents/customize-agent-behaviour/event-subscription)); use this endpoint for dashboards, backfills and checking that no webhook was missed. ## Notes * `start_date` and `end_date` take a timezone offset, for example `2026-10-01T00:00:00+05:30`. `bulk_list_id` is the campaign's ID. `status` is one of `registered`, `ongoing`, `retry`, `error`, `completed`, `failed`, `cancelled`, `forwarded`. Repeat `agent_id`, `status` or `bulk_list_id` to filter by several values. * `limit` defaults to `10`; more than `200` returns `400`. Page with `offset`. * The list allows 10 requests per workspace per minute; more return `429`. * `transcript` is a JSON-encoded string; parse it to get the turns. * The response's `total` is the number of calls matching the filters, for paging. * `audio_recording` links may expire. Fetch a fresh link from [Get call details](/api-reference/monitoring/call-history/get-call-details), and download recordings you need to keep. * For one call with its post-call analysis, use [Get call details](/api-reference/monitoring/call-history/get-call-details). To get many calls as a CSV by email, use [Download call history](/api-reference/monitoring/call-history/download-call-history), or add `download=true` here with the same filters. ## Export by email `download=true` emails a CSV of every matching call instead of returning a page (`limit` and `offset` are ignored). Add `email` to send it to specific teammates instead of the requester; repeat it for several people: ```bash theme={null} curl --request GET \ --url 'https://prod-api.ringg.ai/ca/api/v0/calling/history?download=true&start_date=2025-09-25T00:00:00%2B05:30&end_date=2025-09-25T23:59:59%2B05:30&email=ops@example.com&email=qa@example.com' \ --header 'X-API-KEY: ' ``` > [!WARNING] > > **Each recipient must be a member of your workspace.** The export is only emailed to people who belong to the workspace: they were invited, accepted the invite, and haven't been removed. An address outside the workspace gets a `400` and no one receives the export. To send it to someone new, invite them to the workspace first. The response is `{"message": "Call history export has been queued. You will receive an email shortly.", "emails": ["ops@example.com", "qa@example.com"]}`. Without `email`, the link goes to the requester (with an API key, the workspace owner). The rules are the same as [Download call history](/api-reference/monitoring/call-history/download-call-history#choose-who-receives-the-export). Related topics # Agent types Source: https://docs.ringg.ai/documentation/build-agents/agents/agent-types Pick a Ringg AI agent type: outbound, inbound, outbound-inbound, webcall or WhatsApp, built as a single-prompt or multi-prompt agent, and find the guide for each. An agent is the AI that holds the conversation for you on a phone call, a browser call or a WhatsApp chat. Every call or chat in Ringg runs through one, so it is the first thing you build after [signing in](/get-started/dashboard-tour#sign-in-for-the-first-time). In the dashboard, agents are listed under **Assistants** in the sidebar. The page itself is titled **Agents**, and **Create agent** opens the **Create Assistant** dialog. You choose two things when you create an agent: the channel it talks on, and how its instructions are built. ## Agent types by channel The **Create Assistant** dialog has four tabs: **Outbound**, **Inbound**, **Webcall** and **WhatsApp**. The tab decides which templates you see and what the agent can connect to. Outbound-Inbound is not a tab: it is an outbound agent with **Inbound Calling** set to **Enabled**. | Type | What it does | What it needs to go live | | - | - | - | | Outbound | Calls people, from a [campaign](/documentation/deploy/campaigns/overview) or an [API call](/api-reference/calling/individual-calls/initiate-individual-call) | A caller ID (The number your callee sees when the agent calls them.): a [number](/documentation/inventory/phone-numbers/buy-or-import-a-number) or a [number pool](/documentation/inventory/phone-numbers/number-pools) | | Inbound | Answers calls to your number | A number [attached to the agent](/documentation/inventory/phone-numbers/inbound-agent-number) | | Outbound-Inbound | Calls out and also answers calls | A caller ID for its outbound calls | | Webcall | Talks to visitors in a browser or app, through the Ringg widget | The widget installed on your site or app | | WhatsApp | Chats with customers on WhatsApp, and answers calls customers place to the number from WhatsApp | A WhatsApp Business number, [connected](/documentation/inventory/tools-integrations/connect-whatsapp) and attached | You can switch **Inbound Calling** on later too: it is under **Advanced Settings** in the editor of any outbound agent. An outbound-inbound agent's editor then shows **Outbound** and **Inbound** tabs, so each direction gets its own prompt. The widget is not limited to webcall agents. **Embed & Widgets** is on every agent except WhatsApp agents, so a voice agent can also take browser calls. ## Agent types by build style Every agent is either single-prompt or multi-prompt. The dashboard calls the second kind **Multi Prompt**; the agent list filters it as **Multi-node**. | | Single-prompt agent | Multi-prompt agent | | - | - | - | | How it works | One [prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt), split into sections such as **Objective**, **Conversation Script** and **FAQs**, drives the whole conversation | A canvas of connected nodes. Each node has one job: talk, say a fixed line, route, call an API, collect a value or end | | Good for | Reminders, lead qualification, support, surveys | Calls with fixed steps: keypad menus, OTP (One-time password: a short code sent to confirm a phone number or sign-in.) or PIN capture, an API lookup before the next question | | Channels | Outbound, inbound, outbound-inbound, webcall, WhatsApp | Voice and web; not WhatsApp | | Created from | **Blank Template** or an industry template | The **Multi Prompt** card, or [**Convert to multi-prompt**](/documentation/build-agents/agents/multi-prompt-agents/test-and-convert#convert-a-single-prompt-agent) on a single-prompt agent | | By API | [Create Agent](/api-reference/agents/create-agent) (outbound, inbound, outbound-inbound) | Not available | Start single-prompt. It is faster to write and easier to change, because a fix is one edit in one prompt. Move to multi-prompt when the model keeps skipping or reordering steps that must happen in order, or when a step needs keypad input or an API result before the call can continue. ## Build each type | You want to… | Build | Then | | - | - | - | | Call a list of borrowers with an EMI reminder | [Outbound, single-prompt](/documentation/build-agents/agents/create-an-agent) | [Create a campaign](/documentation/deploy/campaigns/create-a-campaign) | | Call one customer when an order ships | [Outbound, single-prompt](/documentation/build-agents/agents/create-an-agent) | [Initiate Individual Call](/api-reference/calling/individual-calls/initiate-individual-call) | | Answer your support line | [Inbound, single-prompt](/documentation/build-agents/agents/create-an-agent) | [Attach a number](/documentation/inventory/phone-numbers/inbound-agent-number) | | Call leads and take their callbacks | [Outbound with **Inbound Calling** enabled](/documentation/build-agents/agents/create-an-agent) | Campaign or API | | Add a "Talk to us" button to your site or app | [Webcall](/documentation/build-agents/agents/create-an-agent) | [Web widget overview](/documentation/deploy/web-and-apps/web-widget/overview), then the [web](/documentation/deploy/web-and-apps/web-widget/overview) or [mobile](/documentation/deploy/web-and-apps/mobile-apps/install) guide | | Reply to customers on WhatsApp | [WhatsApp, single-prompt](/documentation/build-agents/agents/whatsapp-agents/create-an-agent) | [WhatsApp overview](/documentation/build-agents/agents/whatsapp-agents/overview) | | Verify identity, collect a PIN, branch on the answer, then transfer | [Multi-prompt](/documentation/build-agents/agents/multi-prompt-agents/overview) | Same as its channel | | Chain calls, messages and API steps on a trigger | [Agents inside a workflow](/documentation/build-agents/workflows/overview) | [Launch a workflow campaign](/documentation/deploy/campaigns/workflow-campaign#workflow-campaigns) | Whatever the type, the order is the same: create the agent, [test it](/documentation/build-agents/test-and-improve/test-an-agent), then connect its channel. Before a phone agent goes live, run through the [go-live checklist](/documentation/build-agents/customize-agent-behaviour/voice-and-language#before-a-voice-agent-goes-live). ## What an agent is made of These are the sections of the single-prompt editor sidebar. A multi-prompt agent keeps the agent-wide ones in [Global Settings](/documentation/build-agents/agents/multi-prompt-agents/global-settings#global-settings) and the rest on its nodes. | Part | What it controls | Editor section | | - | - | - | | [Prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt) | The first message and the instructions the agent follows | **Prompt** | | [Voice and language](/documentation/build-agents/customize-agent-behaviour/voice-and-language) | Languages, voice and speaking speed | **Voice** | | [Variables](/documentation/build-agents/customize-agent-behaviour/custom-variables) | Per-call values such as `callee_name`, used in the prompt as `@{{callee_name}}` | **Custom Variables** | | [Knowledge base](/documentation/build-agents/customize-agent-behaviour/attach-a-knowledge-base) | Documents the agent looks up during a conversation | **Knowledge Base** | | [Call settings](/documentation/build-agents/customize-agent-behaviour/call-settings) | Call length, silence handling, voicemail, interruptions, chat timeouts | **Call**, **Chat** | | [Number](/documentation/inventory/phone-numbers/inbound-agent-number) | The number an inbound or WhatsApp agent answers on | **Attach Number** | | [Web widget](/documentation/deploy/web-and-apps/web-widget/overview) | Components, look and install code for the widget | **Embed & Widgets** | | [Keywords](/documentation/build-agents/customize-agent-behaviour/voice-and-language#keyword-boosting) | Brand and product names the speech recogniser should catch | **Keyword Boosting** | | [Analysis](/documentation/build-agents/customize-agent-behaviour/advanced-analysis) | Fields extracted from every conversation | **Advanced Analysis** | | [Tools](/documentation/build-agents/customize-agent-behaviour/tools/overview) | API calls before, during and after a call | **Tools** | | [Event Subscription (webhooks)](/documentation/build-agents/customize-agent-behaviour/event-subscription) | Callbacks to your server on call events | **Event Subscription** | | [Versions](/documentation/build-agents/test-and-improve/drafts-and-versions) | Several versions of one agent with a traffic split | **Create Versions** | The outbound caller ID is not stored on the agent. You [pick it](/documentation/inventory/phone-numbers/inbound-agent-number#outbound-choose-the-caller-id) each time you place a call or start a campaign. ## The Agents page The page lists every agent in the workspace, with **Create agent** at the top right. * **Channels:** filters the list to **All**, **Voice**, **WhatsApp**, **Browser** (webcall agents) or **Multi-node** (multi-prompt agents). * **Search by name or ID** matches any part of a name, ignoring case; an ID has to match in full. * Agents are grouped as **Favourites**, then **Edited last week** (changed in the last 7 days), then **Older**, newest first within each group. Empty groups are not shown. * The star on a row pins the agent under **Favourites**. Favourites live in your browser, so teammates and your other devices don't see them. * Each row shows its channel and direction (**Voice • Outbound**, **Voice • Inbound**, **Voice • Outbound-Inbound**, **Browser**, **WhatsApp** or **Multi-node**) and **Activity**, the agent's call count since it was created ("—" when there is none). It counts phone and web calls, not WhatsApp chats, and can lag by a few minutes. An agent with its own [call limit](/documentation/manage-account/call-limits) shows it as a chip such as `5 calls/1hr`; agents on the workspace limit show no chip. The row's **⋮** menu: | Action | What happens | | - | - | | **Test** | Opens the editor with the test dialog open ([Test an agent](/documentation/build-agents/test-and-improve/test-an-agent)) | | **Clone** | Creates a copy at once, with no confirmation; "Agent cloned successfully". The copy is named "\[agent name] (Cloned)" and has the active version only (every live version while an A/B test runs). It has no inbound number attached. | | **History** | Opens [Logs](/documentation/monitor/logs) filtered to this agent's calls | | **Analytics** | Opens [Analytics](/documentation/monitor/analytics) filtered to this agent | | **Delete** | Opens **Delete agent**: "Are you sure you want to delete \[agent name]? This action cannot be undone." **Delete** removes it; "Agent deleted successfully". Clone it first if you want to keep a copy. | ## Find the agent ID API calls, campaigns and webhooks identify an agent by its `agent_id`. Find it in any of these places: * The copy button next to the agent name in the editor's top bar. * The editor URL: `/assistants/`. * The agent list search (**Search by name or ID**), which matches a full ID exactly. By API, [List Agents](/api-reference/agents/get-assistants) lists every agent with its ID. Send your [API key](/documentation/manage-account/api-key) in the `X-API-KEY` header ([authentication](/api-reference/introduction/authentication)). ```bash cURL theme={null} curl "https://prod-api.ringg.ai/ca/api/v0/agent/all?limit=50" \ -H "X-API-KEY: $RINGG_API_KEY" ``` ```javascript JavaScript theme={null} const response = await fetch("https://prod-api.ringg.ai/ca/api/v0/agent/all?limit=50", { headers: { "X-API-KEY": process.env.RINGG_API_KEY }, }); console.log(await response.json()); ``` ```python Python theme={null} import os import requests response = requests.get( "https://prod-api.ringg.ai/ca/api/v0/agent/all", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, params={"limit": 50}, ) print(response.json()) ``` Page through the list with `limit` and `offset`; without `limit`, it returns every agent. To read one agent, use [Get Agent](/api-reference/agents/get-assistant-by-id). ## Next steps > [card] [Create an agent](/documentation/build-agents/agents/create-an-agent) > > Outbound, inbound or webcall, from a template or from scratch. > [card] [Build a multi-prompt agent](/documentation/build-agents/agents/multi-prompt-agents/overview) > > Lay out a step-by-step flow on the canvas. > [card] [Create a WhatsApp agent](/documentation/build-agents/agents/whatsapp-agents/create-an-agent) > > Connect WhatsApp Business, then build the agent. # Create an agent Source: https://docs.ringg.ai/documentation/build-agents/agents/create-an-agent Create a Ringg AI agent from a blank or industry template in the Create Assistant dialog, or with POST /public/agent, then open it in the editor to test. For a template, Ringg writes the first prompt from the company and call details you enter; the API creates single-prompt voice agents only. Not sure which type you need? See [Build each type](/documentation/build-agents/agents/agent-types#build-each-type). ## Before you start > [card] [A Ringg workspace](/get-started/dashboard-tour#sign-in-for-the-first-time) > > Sign in to the dashboard; agents are created from its **Agents** page. > [card] [An API key](/documentation/manage-account/api-key) > > Optional: only for the API path below. ## In the dashboard **Sidebar → Assistants → Create agent**. The video shows the whole flow, from the Agents page to the editor. Creating a single-prompt agent in the dashboard **1. Pick a channel** On the **Agents** page, click **Create agent**. In the **Create Assistant** dialog, choose a tab: **Outbound**, **Inbound**, **Webcall** or **WhatsApp** ([which one?](/documentation/build-agents/agents/agent-types#agent-types-by-channel)). The templates below change with the tab. A WhatsApp agent also needs a connected WhatsApp Business number; follow [Create a WhatsApp agent](/documentation/build-agents/agents/whatsapp-agents/create-an-agent) for that path. **2. Pick a starting point** The left rail has **Blank Template** (selected by default), **Select industry templates** (**Logistics**, **Healthcare**, **Financial**, **Education**, **HR & Recruitment**, **eCommerce**) and **Plugins → Zapier**. With **Blank Template** selected, the dialog shows two groups: * **Create from scratch**: a general single-prompt template for the chosen channel, and **Multi Prompt** ("Create assistant from scratch for complex workflows."), which is not offered on the **WhatsApp** tab. * **Choose from templates**: ready-made templates for the channel. Some have a **Play Demo** button that plays a sample call. Pick an industry to see only its templates, or **Zapier** for the Zapier ones. Click a card to continue. ![Create Assistant dialog on the Outbound tab with Blank Template selected: Outbound assistant and Multi Prompt under Create from scratch, and industry templates such as EMI payment reminder below](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-create/create-dialog.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=da3a9cac536e78ddd8d9902092027d35) The Create Assistant dialog on the Outbound tab **3. Fill in Agent basics (single-prompt)** * **Agent basics**: **Agent Name** (required), **Primary Language** (required; starts on the template's language, or `en-IN`) and **Secondary Language** (optional; only languages that pair with the primary are listed, after **None**). A name like `EMI reminder - Hindi` tells your team the use case and language at a glance in the agent list and Logs. * **Set up voice**: pick a voice from the grid. Selecting a voice plays its preview. Filter by provider tab (**All**, then each provider) or click **See more** for the full list. The grid shows only voices for the selected languages; you can change languages and voice later ([Voice and language](/documentation/build-agents/customize-agent-behaviour/voice-and-language)). ![Agent basics with Agent Name EMI reminder, Primary Language English (India), Secondary Language Hindi, and the voice Ananya selected in the voice grid](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-create/agent-basics.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=9903801f88fa5e61a32f34498561111f) Step 1: agent basics and voice Click **Next**. It checks the fields in order and stops with "Agent name is required", "Please select a language" or "Please select a voice"; a voice must be selected, not only previewed. **4. Fill in the call context** The second step holds what the template needs to write your prompt: * **Call context**: the template's own fields, such as company details and the purpose of the call. Fields marked `*` are required. Type `@` in a field to insert a variable, or to create one ([Write the prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt)). * **Custom variables**: values that change per call ([Variables](/documentation/build-agents/customize-agent-behaviour/custom-variables)). Variables that come with the template cannot be removed. Names are lowercased and spaces become `_` as you type. * **Knowledge Base**: attach one or more knowledge bases. Don't have one yet? [Create a knowledge base](/documentation/inventory/knowledge-base#create-a-knowledge-base). * **Inbound Calling** (Outbound only): **Enabled** lets this outbound agent also answer calls (an Outbound-Inbound agent). Default **Disabled**. * **Select Phone Number** (Inbound only) or **Select WhatsApp Number** (WhatsApp only): pick the **Telephony** provider, then the **Number** the agent answers on. Optional: you can [attach it later](/documentation/inventory/phone-numbers/inbound-agent-number). Don't have one yet? [Buy or import a number](/documentation/inventory/phone-numbers/buy-or-import-a-number), or [connect WhatsApp](/documentation/inventory/tools-integrations/connect-whatsapp). ![Call context step with Company details and Purpose of the call filled in for Acme Lending, and an empty Additional instructions field](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-create/call-context.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=778fe4938b59fec6e5c544472c9038d3) Step 2: call context Click **Create Assistant**. **Back** returns to the first step without losing your entries. "Please fill in all required fields" means a **Call context** field is empty; the page scrolls to it and outlines it in red. **5. Land in the editor** A progress screen shows while Ringg writes the prompt ("This usually takes under a minute"). > [!TIP] > > You see **Assistant created** and the agent opens in the single-prompt editor at `/assistants/`, with its name and **Test assistant** in the top bar. On the **Agents** page it is at the top of **Edited last week**, labelled with its channel and direction, for example **Voice • Outbound**. ### Multi-prompt agents Clicking **Multi Prompt** skips the form: Ringg creates an agent named **Untitled Workflow** and opens the canvas. Rename the agent from its name in the top bar, then build the flow: [Multi-prompt agents](/documentation/build-agents/agents/multi-prompt-agents/overview). ## With the API Send `POST /public/agent` with your [API key](/documentation/manage-account/api-key) in `X-API-KEY` ([authentication](/api-reference/introduction/authentication)). It creates a single-prompt agent and returns its ID. Get a `voice_id` from [List Voices](/api-reference/agents/get-assistant-voices) first. The API cannot create Webcall, WhatsApp or multi-prompt agents; use the dashboard for those. ```bash cURL theme={null} curl -X POST "https://prod-api.ringg.ai/ca/api/v0/public/agent" \ -H "X-API-KEY: $RINGG_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_name": "Payment reminder", "agent_type": "outbound", "primary_language": "en-IN", "secondary_language": "hi-IN", "voice_id": "857e1b18-0adb-4b3e-b150-ce7896a16bf1", "intro_message": "Hello, this is Asha from Acme Finance. Is this a good time to talk?", "introduction_and_objective": "You are Asha, a polite collections assistant for Acme Finance. Remind the customer of their upcoming EMI and confirm a payment date.", "task": "Confirm identity, state the EMI amount and due date, ask when they will pay, and note the date.", "response_guidelines": "Be brief and respectful. Never threaten. If the customer disputes the amount, offer a callback from the team.", "custom_variables": ["callee_name", "mobile_number", "emi_amount", "due_date"] }' ``` ```javascript JavaScript theme={null} const response = await fetch("https://prod-api.ringg.ai/ca/api/v0/public/agent", { method: "POST", headers: { "X-API-KEY": process.env.RINGG_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ agent_name: "Payment reminder", agent_type: "outbound", primary_language: "en-IN", secondary_language: "hi-IN", voice_id: "857e1b18-0adb-4b3e-b150-ce7896a16bf1", intro_message: "Hello, this is Asha from Acme Finance. Is this a good time to talk?", introduction_and_objective: "You are Asha, a polite collections assistant for Acme Finance. Remind the customer of their upcoming EMI and confirm a payment date.", task: "Confirm identity, state the EMI amount and due date, ask when they will pay, and note the date.", response_guidelines: "Be brief and respectful. Never threaten. If the customer disputes the amount, offer a callback from the team.", custom_variables: ["callee_name", "mobile_number", "emi_amount", "due_date"], }), }); console.log(await response.json()); ``` ```python Python theme={null} import os import requests response = requests.post( "https://prod-api.ringg.ai/ca/api/v0/public/agent", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, json={ "agent_name": "Payment reminder", "agent_type": "outbound", "primary_language": "en-IN", "secondary_language": "hi-IN", "voice_id": "857e1b18-0adb-4b3e-b150-ce7896a16bf1", "intro_message": "Hello, this is Asha from Acme Finance. Is this a good time to talk?", "introduction_and_objective": "You are Asha, a polite collections assistant for Acme Finance. Remind the customer of their upcoming EMI and confirm a payment date.", "task": "Confirm identity, state the EMI amount and due date, ask when they will pay, and note the date.", "response_guidelines": "Be brief and respectful. Never threaten. If the customer disputes the amount, offer a callback from the team.", "custom_variables": ["callee_name", "mobile_number", "emi_amount", "due_date"], }, ) print(response.json()) ``` ```json Response (200) theme={null} { "success": true, "data": { "id": "00000000-0000-4000-8000-0000000000a1", "version": "v1", "version_id": "3411d748-1dde-4701-88ad-8d1e8fd5cefe", "created_at": "2024-12-16T13:03:29.947147+00:00" }, "message": "Agent created successfully" } ``` > [!TIP] > > `data.id` is the `agent_id` you pass to [calling](/api-reference/calling/individual-calls/initiate-individual-call) and [campaign](/api-reference/calling/campaigns/start-campaign) endpoints. [Get Agent](/api-reference/agents/get-assistant-by-id) returns the new agent, and it is on the **Agents** page in the dashboard. **Likeliest error:** `400` with code `VOICE_LANGUAGE_MISMATCH`: the voice does not support `primary_language`. Pick a voice from [List Voices](/api-reference/agents/get-assistant-voices) whose `languages` include it. `intro_message` becomes the agent's **First message**. The other text fields become four prompt sections, shown in the editor as **Objective**, **Response Guidelines**, **Conversation Script** (`task`, with `sample_conversations` appended) and **FAQs**; open the agent in the dashboard to review them ([Write the prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt)). An AI assistant can also create agents for you through the Ringg [MCP server](/resources/mcp-server/workspace-mcp-server/overview). ### Request fields The [Create Agent](/api-reference/agents/create-agent) reference lists every field. The essentials: **agent\_name** `string` *required* Up to 100 characters. **intro\_message** `string` *required* First thing the agent says; up to 500 characters. **introduction\_and\_objective** `string` *required* Up to 2,000 characters. **task** `string` *required* Up to 1,500 characters. **response\_guidelines** `string` *required* Up to 3,000 characters. **primary\_language** `string` *required* A locale such as `en-IN` or `hi-IN`; see [language codes the API accepts](/documentation/build-agents/customize-agent-behaviour/voice-and-language#language-codes-the-api-accepts). **voice\_id** `string` *required* From [List Voices](/api-reference/agents/get-assistant-voices); must support the language. **agent\_type** `string` `outbound` (default), `inbound` or `outbound_inbound`. **custom\_variables** `string[]` Per-call [variables](/documentation/build-agents/customize-agent-behaviour/custom-variables). For outbound agents, `callee_name` and `mobile_number` are always added. **secondary\_language** `string` A second locale the agent can switch to. **faq** `string` Questions and answers; up to 5,000 characters. **sample\_conversations** `string` Example conversations; up to 5,000 characters. Use `\n` between turns. **call\_config** `object` Call behaviour; every key is optional. See [Call settings](/documentation/build-agents/customize-agent-behaviour/call-settings#do-this-with-the-api) for the keys. ## Troubleshooting > [accordion] "Template not available" > > The general template for that channel could not be loaded. Close the dialog and try again, or start from an industry template. > [accordion] Do I need a number before I create the agent? > > No. Outbound agents never store a number: you pick the caller ID per call or campaign. Inbound and WhatsApp agents can be created without one and have it [attached later](/documentation/inventory/phone-numbers/inbound-agent-number). ## Next steps > [card] [Write the prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt) > > Edit the first message and the sections Ringg wrote. > [card] [Test the agent](/documentation/build-agents/test-and-improve/test-an-agent) > > Call yourself, or talk to it in the browser, before going live. > [card] [Buy or import a number](/documentation/inventory/phone-numbers/buy-or-import-a-number) > > The caller ID for outbound calls, or the line an inbound agent answers. # Multi-prompt global settings Source: https://docs.ringg.ai/documentation/build-agents/agents/multi-prompt-agents/global-settings Settings that apply to a whole Ringg AI multi-prompt agent: voice, number, variables, knowledge base, analysis, call and chat settings, events, and pre- and post-call tools. ## Global Settings With no node selected, the right panel shows **Global Settings**, which apply to the whole agent: ![Canvas of a loan application flow: Start, Agent node Greet and confirm identity, LLM Router Interested?, Collect PIN code, Action Check eligibility (POST /v1/eligibility), Logic Router Eligible?, Speak node Confirm offer, Keypad Menu Advisor callback?, Action Book advisor callback and End, with Global Settings from Voice to Post-call tools on the right](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-multi-prompt/canvas.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=89f3e1f0791f579116be2d610a7f4e8c) A loan application flow on the canvas, with Global Settings on the right | Item | Covers | | - | - | | [**Voice**](/documentation/build-agents/customize-agent-behaviour/voice-and-language) | Default language, voice and speed | | [**Attach number**](/documentation/inventory/phone-numbers/inbound-agent-number) | Inbound number for the agent | | [**Custom variables**](/documentation/build-agents/customize-agent-behaviour/custom-variables) | Variables passed in per call | | [**Knowledge base**](/documentation/build-agents/customize-agent-behaviour/attach-a-knowledge-base) | Agent-wide knowledge bases | | [**Advanced Analysis**](/documentation/build-agents/customize-agent-behaviour/advanced-analysis) | Post-call extraction | | **Keywords boosting** | Words the speech recogniser should favour | | [**Call**](/documentation/build-agents/customize-agent-behaviour/call-settings) | Call duration, voicemail, interruption and other call settings | | [**Chat**](/documentation/build-agents/customize-agent-behaviour/call-settings) | Duration settings for text sessions | | [**Events subscription**](/documentation/build-agents/customize-agent-behaviour/event-subscription) | Webhooks for call events | | [**Pre-call tools**](/documentation/build-agents/customize-agent-behaviour/tools/overview) | Tools that run before the call | | [**Embed & widgets**](/documentation/deploy/web-and-apps/web-widget/overview) | Web widget, its components and install code | | [**Post-call tools**](/documentation/build-agents/customize-agent-behaviour/tools/overview) | Tools that run after the call | On-call tools are not in Global Settings: you attach them per Agent node. # Node types and connections Source: https://docs.ringg.ai/documentation/build-agents/agents/multi-prompt-agents/node-types-and-connections Every node in a Ringg AI multi-prompt agent, what each one does and its settings, and the rules for connecting nodes with routers and transitions. ## Node types The node picker has one **Router** entry ("Ask the caller or branch on data"); choose it, then pick **LLM Router** or **Logic Router**. | Node (picker description) | What it does | Main settings | | - | - | - | | **Start** (added automatically) | Entry point of every call. | None. Cannot be deleted. | | **Agent** “Free-form conversation” | An LLM-driven conversation with its own [prompt](/documentation/build-agents/customize-agent-behaviour/agent-prompt). | **Prompt** (**Objective**, **Response Guidelines**, **Conversation flow**, **FAQs**; plus **Intro Message** on a node connected to **Start**), **Voice** (per-node override; falls back to Global Settings), **Context strategy**, **Knowledge base** ([per node](/documentation/build-agents/customize-agent-behaviour/attach-a-knowledge-base#multi-prompt-agents)), **On-call tools** (API, Function, Workspace tool and System tools; see [Tools](/documentation/build-agents/customize-agent-behaviour/tools/overview)), **Query Phrases** (only once the node has a knowledge base or on-call tool), **End call** (**Enable End Call**). | | **Speak** “Send a scripted message” | Says a fixed message. | **Messages** per **Language**, with several phrase variations per language (the agent rotates them so it does not repeat itself); **Allow user to interrupt** (off by default). | | **LLM Router** “Router → Ask the caller, decide on reply” | Branches on what the caller says. | **Conditions** (plain-language, e.g. "When the caller wants to reschedule"), **Retry behavior** (**Message**, **Ask attempts** 1–5, default 2), **Fallback** (**After exhausting attempts**), [**Extract variables**](#extract-variables). | | **Logic Router** “Router → Branch on existing data” | Branches on variable values, with no caller turn. | **Conditions** built from rules (operators: equals, not equals, greater than, less than, greater or equal, less or equal, contains, in, is set, is not set), **Match** **All** or **Any**; **Fallback** (**When nothing matches**). A rule's left side is a variable or a [custom formula](#custom-formulas). | | **Action** “Call an API or knowledge base” | Makes an HTTP request and stores the response. Despite the picker text, there is no knowledge base action; give an Agent node a knowledge base instead. | Request editor (method, URL, headers, path, query, body, response); **Retries on failure** (**No retries** by default, or 1, 2, 3; retried on 429/5xx). Outputs **On success** and **On failure**. | | **Keypad Menu** “Press a key to choose a branch” | Routes on the digit the caller presses (DTMF (Dual-tone multi-frequency: the tones a phone keypad sends when a key is pressed.)). The menu itself ("Press 1 for sales…") is spoken by the Speak node before it; this node has no prompt. | **Keys** (digits 1–9 and 0, each routed to a node; `*` clears the input and `#` submits, so neither can be a key), **Wait for keypress** (3–15 s, default 5), **Retry behavior** (**Message** spoken before re-asking, **Ask attempts** 1–5, default 3), **Fallback** (**After max attempts, go to**). | | **Collect** “Capture a value from the caller” | Captures and checks one value. | **Field type**: Phone number, Email, One-time passcode or PIN code; **Default country code** (phone, default +91); **Number of digits** (OTP (One-time password: a short code sent to confirm a phone number or sign-in.) and PIN, 3–10; defaults 5 and 4); **Allow keypad entry** (off by default); **Retry behavior** (**Ask attempts** 1–5, default 3); **Fallback** (**If it can't be collected, go to**). Outputs **Captured** and **Failed**. | | **Widget** “Show a widget to the caller” | Shows one of the agent's widgets to the caller. | **Widget**: one of the agent's static widgets from **Embed & widgets** ([Embed & Widgets](/documentation/deploy/web-and-apps/web-widget/components)). | | **End** “Finish the call” | Ends the call. | None. | Responses stored by an Action node are available to later nodes through the `@` menu ([Variables](/documentation/build-agents/customize-agent-behaviour/custom-variables)). ![Request editor for the Action node Check eligibility: POST https://api.acme-lending.example/v1/eligibility, Response tab after Test API with eligible, eligible\_amount and interest\_rate selected as fields to store, response time 412ms](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-multi-prompt/action-request.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=2ead2212c105edb4bece7c7242c293bf) An Action node's request editor after Test API: pick the response fields to store **Context strategy** decides what an Agent node remembers from earlier nodes. The node being entered sets it: | Strategy | What the node starts with | | - | - | | **Append (carry over)** (default) | Everything so far: earlier instructions, every turn, and tool calls and results | | **Reset (start fresh)** | Only its own instructions; earlier turns are dropped | | **Reset (keep conversation)** | Its own instructions plus the earlier caller and agent turns, without earlier instructions or tool results | | **Reset with Summary** | Its own instructions plus a summary of the conversation so far, written from its **Summary Prompt** ("Summarize the conversation so far..."). If the summary can't be written in time, the node falls back to Append | ### Extract variables An LLM Router can pull values out of the caller's answer as it routes. Each entry has a `variable_name`, a type (**String**, **Number**, **Boolean**, **Date**, **Enum** with its values as a comma-separated list, or **Array**) and a description: "Describe what this variable should capture from the conversation". Extracted variables appear under **Extracted Variables** in the `@` menu of later nodes and in a Logic Router's variable picker, and in the **Test call summary** after a test. ### Custom formulas In a Logic Router rule, the variable picker's **Logic** section offers **Custom formula**, which replaces the variable with a jq expression. Describe it in English ("e.g. days until the payment date") and click **Generate formula**, or click **Paste formula directly** and type the jq yourself. The card shows **Sample values used** so you can check what the formula read, and the operator and value of the rule stay as they were. **Use a variable** switches back. ## Connection rules The node picker enforces these rules. Blocked types appear greyed out with the reason as a tooltip, for example "Agents can only hand off to an LLM Router or End — route through a Router to continue." | From | Can connect to | Cannot connect to | | - | - | - | | **Start** | Agent, Speak, Logic Router, Action | End, LLM Router, Keypad Menu, Collect, Widget | | **Agent** | LLM Router, End | Everything else, including Logic Router | | **LLM Router** | Any node except another LLM Router | LLM Router | | Any other node | Any node type except **Start**, including **End**. **Widget** only after you add a widget with static content under [Embed & widgets](/documentation/deploy/web-and-apps/web-widget/overview) | | When an LLM Router follows an Agent node, the Agent makes the routing decision, so the router hides its **Retry behavior** and **Fallback** sections. # Multi-prompt agents Source: https://docs.ringg.ai/documentation/build-agents/agents/multi-prompt-agents/overview Build a Ringg AI multi-prompt agent: when to use one, create it, find your way around the canvas, and read an example flow from greeting to transfer. Choose a multi-prompt agent when a call has strict steps or branches, such as a keypad menu, OTP (One-time password: a short code sent to confirm a phone number or sign-in.) capture or an API lookup before the next question. For most calls, a [single-prompt agent](/documentation/build-agents/agents/agent-types#agent-types-by-build-style) with one sectioned prompt is simpler to build and maintain. In the dashboard: **Sidebar → Assistants → Create agent → Multi Prompt**. The dashboard calls these agents **Multi Prompt** and lists them under the **Multi-node** filter on the Agents page (multi-node is the internal name). Multi-prompt agents support voice and web calls, not WhatsApp: the **Multi Prompt** card is not shown on the **WhatsApp** tab, and **Convert to multi-prompt** is not offered for WhatsApp agents. ## Before you start > [card] [A knowledge base](/documentation/inventory/knowledge-base) > > Optional: for Agent nodes that answer from your documents. > [card] [Tools](/documentation/build-agents/customize-agent-behaviour/tools/overview) > > Optional: on-call tools for Agent nodes, pre-call and post-call tools for the agent. ## Create a multi-prompt agent **1. Open the create dialog** On the Agents page (listed under **Assistants** in the sidebar), click **Create agent**. The **Create Assistant** dialog opens. **2. Pick Multi Prompt** On the **Outbound**, **Inbound** or **Webcall** tab, under **Create from scratch**, click **Multi Prompt** ("Create assistant from scratch for complex workflows."). **3. Start building** There is no form. The dashboard creates an agent named **Untitled Workflow** with a **Start** node and the custom variables `callee_name` and `mobile_number`, then opens the canvas. Whichever tab you start from, the new agent is an outbound agent. > [!TIP] > > You see "Workflow created successfully" and the canvas with a single **Start** node. You can also turn an existing single-prompt agent into a multi-prompt one. See [Convert a single-prompt agent](/documentation/build-agents/agents/multi-prompt-agents/test-and-convert#convert-a-single-prompt-agent). ## The canvas The editor has two parts. The canvas on the left holds the nodes and their connections. The panel on the right shows the settings of the selected node, or **Global Settings** when nothing is selected; drag the divider to resize it. The video adds a node, opens a node's settings, then opens Global Settings. Working on the multi-prompt canvas * **Add a node:** click the dot on a node's output. A picker lists the node types you can add there ([connection rules](/documentation/build-agents/agents/multi-prompt-agents/node-types-and-connections#connection-rules)). * **Drag to add:** drag from an output dot to empty canvas. A preview of the next node follows the cursor; press **Tab** to switch its type, then release to place it. Drag onto an existing node to connect the two. * **Reuse an Agent node:** once the flow has an Agent node, **Agent** opens a submenu with **Blank agent** and **From existing** (copies another Agent node's setup). * **Name a node:** click the name or the description at the top of its panel and type. **Enter** saves the name (**Cmd/Ctrl+Enter** for the description), **Esc** cancels. The name is what you see in the test summary, in the call's path in [Logs](/documentation/monitor/logs) and from the [MCP server](/resources/mcp-server/workspace-mcp-server/tool-reference), so name nodes by what they do: "Greet and confirm identity", "Eligible?". * **Canvas controls:** **Zoom in**, **Zoom out**, **Fit to screen**, **Organize nodes** (auto-layout left to right) and **Hand tool (H)** for panning. * **Delete:** each node has a delete action with a confirmation. To delete several, drag a box around them and press **Delete** or **Backspace**; **Delete selection** asks you to confirm. The **Start** node cannot be deleted. ![Node picker listing Agent, Speak, Router, Action, Keypad Menu, Collect, Widget (greyed out) and End, each with a one-line description, with the Router submenu offering LLM Router and Logic Router](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-multi-prompt/node-picker.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=30d6f5a9cb627f89d2a52e50f2e7bee5) The node picker, opened from a router branch Most node panels have their own **Save** button, which reads **Saved** once the node has no pending edits. Saved node changes go into the agent's draft; they reach callers only when you [publish](/documentation/build-agents/test-and-improve/drafts-and-versions#publish-changes-on-a-multi-prompt-agent). ![Settings panel for the Agent node Greet and confirm identity, with Objective, Response Guidelines, Intro Message, Conversation flow and FAQs fields filled in and a Save button](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-multi-prompt/agent-node-settings.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=2b832978c5258829098bb7f97b3294e5) An Agent node's settings with the Prompt section open ## Example flow A rescheduling call, built from the node types below. Edge labels are the router's conditions and the nodes' outputs. ```mermaid theme={null} flowchart TD S([Start]) --> A[Agent: greet and confirm identity] A --> R{LLM Router} R -->|Wants to reschedule| C[Collect: PIN code] R -->|Not interested| E([End]) C -->|Captured| X[Action: book slot] C -->|Failed| E X -->|On success| K[Speak: confirm the new slot] X -->|On failure| E K --> E ``` ## Troubleshooting > [accordion] The banner says “Review and resolve each issue before publishing.” > > The last publish found problems in the flow. Click **Review issues** and open each issue to jump to the node or connection that needs fixing, then [publish again](/documentation/build-agents/test-and-improve/drafts-and-versions#publish-changes-on-a-multi-prompt-agent). ## Next steps > [card] [Publish changes and run A/B tests](/documentation/build-agents/test-and-improve/drafts-and-versions) > > Drafts, publishing, versions and traffic split. > [card] [Add tools to your agent](/documentation/build-agents/customize-agent-behaviour/tools/overview) > > Pre-call, on-call and post-call tools. # Test and convert multi-prompt agents Source: https://docs.ringg.ai/documentation/build-agents/agents/multi-prompt-agents/test-and-convert Test a Ringg AI multi-prompt agent, convert a single-prompt agent into a flow, and build or edit flows from an AI assistant through the MCP server. ## Test a multi-prompt agent **1. Publish or discard pending changes** While the agent has unpublished changes, the top bar shows **Discard** and **Publish** instead of **Test assistant**. Publish them first. See [Publish changes on a multi-prompt agent](/documentation/build-agents/test-and-improve/drafts-and-versions#publish-changes-on-a-multi-prompt-agent). **2. Choose a test mode** Click **Test assistant** and pick **Phone call**, **Web call** or **Live chat** ([test options](/documentation/build-agents/test-and-improve/test-an-agent#test-options)). Phone call opens a dialog; web call and live chat run in the right panel so the canvas stays visible. **3. Watch the flow** During the test, the canvas highlights the node the conversation is on and marks the path taken so far. Extracted values appear on the nodes as they are captured. **4. Review the run** When the call ends, the path stays on the canvas with a **Test call ended** pill. Click **View summary** to see the **Path** and **Extracted variables**. > [!TIP] > > The path on the canvas matches the branch you expected, and the extracted values are correct. The call is also in [Logs](/documentation/monitor/logs). A test runs the version shown in the editor. For test modes and caller variables, see [Test an agent](/documentation/build-agents/test-and-improve/test-an-agent). ## Convert a single-prompt agent Where conversion is available, a single-prompt agent shows **Convert to multi-prompt** under **More** in its editor sidebar; its tooltip shows the prompt's token count. It isn't offered to every workspace: if you don't see it, contact Ringg. **1. Open the dialog** Click **Convert to multi-prompt**. The dialog **Convert to multi-node agent** explains that your current agent will remain unchanged. **2. Start the conversion** Click **Upgrade**. Progress streams in: plan generated, start and end nodes created, then each Agent, Speak and Router node and its connections. You can close the dialog; the conversion keeps running. **3. Open the result** When the dialog title changes to **Multi-node agent is ready**, click **Open new agent**. The conversion creates a separate multi-prompt agent. Review its nodes, then test it before you route real calls to it. > [!TIP] > > The new multi-prompt agent opens on the canvas. Your original single-prompt agent is unchanged. ## Build flows with AI tools The Ringg [MCP server](/resources/mcp-server/workspace-mcp-server/overview) can create multi-prompt agents and edit their nodes and connections as a draft, then publish them, so an AI assistant that supports MCP can build or change a flow for you. See [connect the MCP server](/resources/mcp-server/workspace-mcp-server/connect-an-assistant) and its [tools](/resources/mcp-server/workspace-mcp-server/tool-reference). # Create a WhatsApp agent Source: https://docs.ringg.ai/documentation/build-agents/agents/whatsapp-agents/create-an-agent Create a Ringg AI WhatsApp agent, attach a registered WhatsApp number, set the chat session timeouts, let it send approved templates and test it by QR code. A WhatsApp agent answers messages on one registered WhatsApp Business number, from the same create dialog as every other [agent type](/documentation/build-agents/agents/agent-types#agent-types-by-channel). A [voice agent](/documentation/build-agents/agents/create-an-agent) that only needs to *send* WhatsApp messages uses the [WhatsApp tools](/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools#on-call) instead. In the dashboard: **Assistants → Create agent → WhatsApp**. ## Before you start > [card] [WhatsApp Business connected](/documentation/inventory/tools-integrations/connect-whatsapp) > > With at least one registered (**Ready**) number. > [card] [Approved templates](/documentation/inventory/tools-integrations/connect-whatsapp#message-templates) > > Optional: only if the agent sends templates in a chat. ## Create the agent The form is the one described in [Create an agent](/documentation/build-agents/agents/create-an-agent); these are the WhatsApp-specific choices. Creating a WhatsApp agent, picking a template it may send, setting the session timeouts and opening the test QR code **1. Choose the WhatsApp tab** Go to **Assistants**, select **Create agent**, and choose the **WhatsApp** tab. Under **Create from scratch**, pick the single-prompt WhatsApp template; its prompt already carries WhatsApp's formatting rules. **2. Fill in the basics** Enter the **Agent Name**, **Primary Language** and optional **Secondary Language**, and pick a voice (the form requires one; the agent speaks with it when a customer calls the number from WhatsApp). Select **Next**. **3. Describe the business and goal** Fill in the **Call context** fields: what the business is and what the chat should achieve. Ringg writes the first version of the prompt from them. Add any **Custom variables** and **Knowledge Base** the agent needs. **4. Select the WhatsApp number** Under **Select WhatsApp Number**, pick the registered number this agent answers on ([which numbers are listed](#attach-a-whatsapp-number)); an empty list reads **No WhatsApp numbers connected**. You can leave it empty and attach one later. ![Select WhatsApp Number section of the create form with a WhatsApp Number dropdown showing +919876540322 selected](https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/whatsapp-create-agent/select-number.webp?fit=max\&auto=format\&n=XUOcNie5hfK3q--Y\&q=85\&s=4725e7df53e13bbd5b8fe68459c2261f) The WhatsApp number step of the create form **5. Create** Select **Create Assistant**. > [!TIP] > > The agent editor opens. On the **Assistants** page, set **Channels** to **WhatsApp** to find it again. ## Attach a WhatsApp number A WhatsApp agent answers on exactly one number, and each number serves one agent at a time. Messages to a number with no agent attached get no reply. The list offers a number only when it belongs to the connected WhatsApp Business account, shows **Ready**, and no other agent uses it. 1. In the agent editor's left menu, expand **Attach Number** (in the top group, below **WhatsApp Templates**). 2. Open **WhatsApp Number** and choose a number. It saves as soon as you choose. The last option, **Connect WhatsApp Number**, takes you to [add and register one](/documentation/inventory/tools-integrations/connect-whatsapp#add-a-number). To move a number to another agent, clear it on the agent that has it, then attach it on the new agent. De-registering or archiving a number detaches it, and the agent stops answering until you attach another. ## What's different in the editor | Section | For a WhatsApp agent | | - | - | | **Prompt** | The first message is sent as a WhatsApp message when the chat starts. | | **WhatsApp Templates** | Templates the agent may send during a chat. See [Send a template during a chat](#send-a-template-during-a-chat). | | **Attach Number** | In the top group, offering only WhatsApp numbers. | | **Chat → Settings** | The WhatsApp session timeouts. See [Set the session timeouts](#set-the-session-timeouts). | | **Tools** | Pre-call, on-call and post-call tools as usual. Pre-call tools run on the customer's first message without holding up the reply; a field a tool didn't return resolves to "not available". **End Chat** sits under **Chat Tools** in the on-call side panel. | | **Event Subscription** | Chat events instead of call events. See [Events](/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events#whatsapp-chat-events). | | Not shown | **Embed & Widgets**, **Keyword Boosting**, and A/B testing (except to finalize one already running). | ## When a chat opens and closes A WhatsApp conversation is one chat. The customer's first message opens it, and it stays open while messages keep flowing. It closes when: | Trigger | What happens | | - | - | | The agent ends it | The agent calls **End Chat**, writes a closing message and closes the chat. | | The customer goes quiet | After the idle timeout (3 hours by default) with no customer message, the chat ends. Their next message opens a new chat. | | It reaches the maximum length | After the maximum length (24 hours by default), however active, the next message opens a new chat. | A new chat starts without the previous chat's messages. Closing the chat is what runs post-call tools and analysis and fires `chat_completed`, so when a customer stops replying, those results arrive after the idle timeout. ### Set the session timeouts Shorter timeouts give you post-call results and webhooks sooner; longer ones keep context for customers who take hours to reply. A chat keeps the timeouts it started with, so a change applies to chats that open afterwards. In the agent editor, open **Chat → Settings**. Under **WhatsApp session**: | Setting | Default | Options | | - | - | - | | **End the chat after no messages for** | 3 hours | 15 or 30 minutes; 1, 2, 3, 6, 12 or 24 hours | | **Start a new chat after** | 24 hours | 1, 6, 12 or 24 hours; 2, 3, 5 or 7 days | Each change saves immediately. The second dropdown only offers values at or above the first; raising the idle timeout above the session length raises the length in the same save. ![WhatsApp session settings with two dropdowns: End the chat after no messages for, set to 1 hour, and Start a new chat after, set to 24 hours](https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/whatsapp-create-agent/whatsapp-session.webp?fit=max\&auto=format\&n=XUOcNie5hfK3q--Y\&q=85\&s=5f3852ba6976abb1b52182f12acc4451) The WhatsApp session settings under Chat → Settings ### Set the session timeouts with the API [Edit Assistant](/api-reference/agents/edit-assistant) with `operation: "edit_chat_settings"`. Send both fields; one you leave out resets to its default. | Field | Default | Allowed | | - | - | - | | `idle_timeout_minutes` | 180 | 5 to 1440 | | `max_duration_minutes` | 1440 | 60 to 10080, at least `idle_timeout_minutes` | ```bash theme={null} curl --request PATCH "https://prod-api.ringg.ai/ca/api/v0/agent/v1" \ --header "X-API-KEY: $RINGG_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "operation": "edit_chat_settings", "agent_id": "your-agent-id", "chat_settings": { "whatsapp_session": { "idle_timeout_minutes": 1440, "max_duration_minutes": 4320 } } }' ``` ### End the chat **End Chat** closes the chat straight away, so post-call tools and analysis run without waiting for the idle timeout. Mention it in the prompt as `@||end_chat||` where the conversation should end. Use it instead of `@||end_call||`: **End Call** and the other call tools don't run during a chat. ## Write a prompt for WhatsApp * Keep replies short, one to three small paragraphs. WhatsApp folds long messages behind "Read more". * Use WhatsApp formatting only: `*bold*`, `_italic_`, `~strike~`, and lines starting with `- ` or `1. ` for lists. * Skip Markdown headings, tables and `[label](url)` links. Send the bare URL; WhatsApp makes it clickable. * Don't mention calls, audio, holding or keypad input. The customer is typing. * Mention every on-call tool and template with `@` where it should be used, and `@||end_chat||` where the chat ends. ```text theme={null} You are Neha, a WhatsApp assistant for Acme Insurance. You help customers renew their health policy. - Greet the customer by name if {{name}} is available, and ask how you can help. - Answer plan questions from the knowledge base. Keep each reply under 80 words. - When the customer is ready to renew, send the renewal link with @||send_renewal_reminder|| and tell them it has been sent. - Use *bold* for plan names and prices. Never use headings or tables. - When the customer says they're done, thank them and end the chat with @||end_chat||. ``` ## Send a template during a chat A WhatsApp agent can send an approved template mid-chat: a brochure, a payment link, a quick-reply menu. Use **WhatsApp Templates** for this. The **Send WhatsApp Template** integration tool can't send templates in a chat; it is for voice agents and post-call sends. **1. Select the templates** In the editor's left menu, expand **WhatsApp Templates** and select **Select Template**. The list shows the approved templates of the attached number's account; tick each one the agent may send. **Manage templates** opens [Message templates](/documentation/inventory/tools-integrations/connect-whatsapp#message-templates). If the section says **Attach a WhatsApp number to this assistant first**, [attach one](#attach-a-whatsapp-number). Rows the agent can't send yet are disabled with the reason: Authentication templates, location headers, text headers with more than one variable, buttons with a variable link, copy-code and Flow buttons. **2. Fill in the variables** If the template has variables or a media header, a dialog asks what fills each variable: * **Static**: fixed text, sent as written. * **Variable**: a custom variable such as `{{name}}`, filled when the chat starts. * **Dynamic**: the agent fills it from the conversation, for example the plan the customer chose. For an image, video or document header, paste a public `https://` link; the same file goes out on every send. ![Set up payment\_receipt dialog with a preview of the template and three variable rows: customer\_name mapped to the customer\_name variable, amount mapped to emi\_amount, and loan\_account set to Dynamic with a description for the model](https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/whatsapp-create-agent/template-variables.webp?fit=max\&auto=format\&n=XUOcNie5hfK3q--Y\&q=85\&s=ea9611786059092df52ecc0e0e0d3d20) Setting up a template with named variables **3. Tag the template in the prompt** Type `@` in the prompt and pick the template under **WhatsApp Templates**. Its tool name is `send_` plus the template name, for example `@||send_renewal_reminder||`; if that name is already taken, the language code is appended. Each selected template is listed under **WhatsApp Templates** with its language; the pencil re-opens the variable dialog and the bin removes it. A line under the name flags one that can no longer be sent as set up: **Not in this WhatsApp account**, **Template rejected** (or another non-approved status), or **Variables changed, edit to re-map**. The template is the agent's whole reply for that turn, and each send appears in the chat transcript under **Logs → WhatsApp**. If a **Variable** isn't available in a chat, the agent fills it from the conversation. When the customer taps a quick-reply button or swipes to reply to an earlier message, their reply reaches the agent with a short quote of that message, so "yes, this one" is understood in context. ## Test from your phone Select **Test assistant** in the editor's top bar. A QR code for the attached number appears with "Scan to start a WhatsApp chat". Scan it with your phone's camera, or use **Open in WhatsApp**, and send a message. If the dialog says "No number attached", [attach a number](#attach-a-whatsapp-number) and reopen **Test assistant**. > [!TIP] > > Your conversation appears under [Logs → WhatsApp](/documentation/monitor/logs#whatsapp-chats). ## Common questions > [accordion] Can one number serve two agents? > > No. A number is attached to one agent at a time; [move it](#attach-a-whatsapp-number) by clearing it on the first agent. > [accordion] Why is my test chat still Ongoing in Logs? > > It stays **Ongoing** until it [closes](#when-a-chat-opens-and-closes), and post-call tools, analysis and `chat_completed` wait with it. Lower **End the chat after no messages for** while testing. > [accordion] Can a WhatsApp agent be multi-prompt? > > No. The **Multi Prompt** card is hidden on the WhatsApp tab and **Convert to multi-prompt** isn't offered for WhatsApp agents. ## Next steps > [card] [Send WhatsApp Flows](/documentation/build-agents/agents/whatsapp-agents/flows) > > Forms inside the chat: bookings, lead forms and surveys. > [card] [Add WhatsApp tools](/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools#on-call) > > Send templates or text from voice agents and after chats. > [card] [Message customers first](/documentation/deploy/whatsapp/start-a-conversation) > > Open a chat with a template from your backend. > [card] [Read the chats](/documentation/monitor/logs#whatsapp-chats) > > Every conversation in Logs, with transcript and export. Related topics # Build WhatsApp Flows in Ringg Source: https://docs.ringg.ai/documentation/build-agents/agents/whatsapp-agents/flow-builder Create, preview and publish WhatsApp Flows from the Ringg AI dashboard, screen by screen or as Flow JSON, without opening Meta's WhatsApp Manager. You can build a [WhatsApp Flow](/documentation/build-agents/agents/whatsapp-agents/flows) in Ringg instead of Meta's WhatsApp Manager. The builder shows one screen at a time: its title and content on the left, and on the right a preview you can fill in like the customer would. Ringg saves the Flow to your WhatsApp Business account as a draft, and when you publish it, any of your WhatsApp assistants can send it. There are two ways to start: | Start from | Use it for | | - | - | | **The builder** | Forms such as lead capture, feedback, site visit requests or KYC details. | | **Paste JSON** | A Flow JSON you already have, such as a design from WhatsApp Manager, from a developer, or the booking design in [Flows with live data](/documentation/build-agents/agents/whatsapp-agents/flows-live-data#set-up-appointment-booking). See [Paste Flow JSON](#paste-flow-json). | ## Before you start * A connected WhatsApp Business account. See [Connect WhatsApp Business](/documentation/inventory/tools-integrations/connect-whatsapp). * You don't need access to WhatsApp Manager. ## Build a Flow Building a two-screen Flow, trying it in the preview, then saving, publishing and duplicating it **1. Open the builder** Go to **Tools → WhatsApp Business**, select the **Flows** tab, then **Create Flow**. **2. Name it** * **Name**: something your team will recognise, such as *Site visit request*. * **Category**: the closest match, for example *Lead generation* or *Appointment booking*. **3. Add screens and content** The first screen starts with an empty **Short answer**. Give the screen a **Page title**, then select a row to edit it. Drag a row by its handle to reorder it, and use the bin to remove it. * **Add content** adds text or a question to the screen. See [What you can add](#what-you-can-add). * **+** next to the screen names adds a screen. The arrows, or the screen names on either side of the current one, move between screens. **Delete screen** removes the screen you're on. Keep it short. Two or three screens with a handful of questions each gets the most submissions. ![Create a Flow dialog: Name Site visit request, Category Lead generation, Edit flow selected, screen 2. Visit details with a Dropdown Project and an expanded Date picker Preferred visit date; the preview shows Project and Preferred visit date](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flow-builder/builder.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=209dc18e29afc9e2e268418c1713f32d) The second screen of a Flow in the builder, with its preview **4. Name the buttons** Every screen ends with a **Button**: * On each screen except the last, it takes the customer to the next screen. It says *Continue* unless you change it. * On the last screen, it submits the form and sends every answer back into the chat, labelled by question. It says *Submit* until you change it, for example to *Request visit*. **5. Try it in the preview** Fill in the preview on the right and tap its buttons to move between screens, as the customer would. Required questions you leave empty are flagged. Select a number above the preview to jump to a screen. When you submit, the preview shows the answers and, under **Assistant reads**, the exact message your assistant gets: ```text theme={null} User submitted the WhatsApp Flow "Site visit request": Full name=Priya Sharma, Project=Green Acres Villas, Preferred visit date=2026-10-04 ``` Select **Start again** to clear it. ![Response sent card with Full name Priya Sharma, Project Green Acres Villas and Preferred visit date 2026-10-04, then Assistant reads: User submitted the WhatsApp Flow Site visit request with the same answers, and a Start again button](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flow-builder/preview-response.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=58c6ffd8bd6990403c07677b1e025715) The preview after submitting: the answers and what the assistant reads **6. Save the draft** Select **Save draft**. Ringg creates the Flow on your WhatsApp account as a draft and keeps it open, so you can carry on editing and select **Save**. Select **Cancel** to see its details. If Meta finds a problem, the builder stays open and lists it under *Meta found problems in the saved draft*. The draft is saved, but it can't be published until you fix the problem and save again. **7. Publish it** In the details, check the preview once more, select **Publish**, then **Publish** again to confirm. ![Site visit request details with Draft and Lead generation chips, a Data source section with Set up data source, Technical details, and Delete draft, Edit and Publish buttons; the preview shows screen 1, Your details](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flow-builder/draft-details.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=d16ee6847b7538beced13819b154e3d3) A saved draft's details: Delete draft, Edit and Publish > [!WARNING] > > Published Flows can't be changed. To change one later, see [Change a published Flow](#change-a-published-flow). The Flow is now ready to [add to an assistant](/documentation/build-agents/agents/whatsapp-agents/flows#let-your-assistant-send-it) or to [a template's Flow button](/documentation/build-agents/agents/whatsapp-agents/flows#open-a-flow-from-a-message-template). ## What you can add **Add content** lists the same components as WhatsApp Manager. The character limits are Meta's, and the builder shows how many you've used. | Group | Content | What the customer gets | Limit | | - | - | - | - | | Text | **Large heading**, **Small heading** | A title inside the screen | 80 characters | | | **Body** | A paragraph of text | 4,096 characters | | | **Caption** | Small print | 409 characters | | Text answer | **Short answer** | A one-line field. Choose its **Input type**: *Text*, *Email*, *Number* or *Phone*. | Label up to 20 characters | | | **Paragraph** | A field for a few lines, such as an address | Label up to 20 characters | | | **Date picker** | A calendar to pick a date | Label up to 40 characters | | Selection | **Single choice** | A list where they pick one | Up to 20 options. Label up to 30 characters. | | | **Multiple choice** | A list where they pick one or more | Up to 20 options. Label up to 30 characters. | | | **Dropdown** | A menu where they pick one | Up to 200 options. Label up to 20 characters. | | | **Opt-in** | A checkbox they tick, such as consent to be contacted | Up to 120 characters | Each question also has: * **Label**: what the customer sees, and the name its answer comes back under. * **Required**: on by default. The customer can't continue until they answer. * **Instructions** (optional): a hint under the field, such as *As on your ID*. Up to 80 characters. For short answers, paragraphs and date pickers. * **Options**, for choices and dropdowns: each has a title of up to 30 characters and an optional description of up to 300. A screen holds up to 49 pieces of content, and a button label is up to 35 characters. > [!TIP] > > Labels matter. Ringg shows the customer's answers under these labels in the chat, in **Logs** and in your webhooks, and your assistant reads them too. *Preferred visit date* is clearer than *Date*. ## View as JSON Every Flow is a Flow JSON document that WhatsApp reads. Select **View as JSON** in the builder to see the complete Flow JSON for what you've built. It is read-only: select the copy icon to copy it, for example for a developer or into WhatsApp Manager. Select **Edit flow** to go back. ![View as JSON tab showing the Flow JSON with version 7.0, screen STEP\_A titled Your details with a TextInput full\_name and a Footer that navigates to STEP\_B, and a copy icon; the preview on the right shows Response sent](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flow-builder/flow-json.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=a0924bc9bc78c1aaa27b3ed7a789b864) View as JSON: the Flow JSON for the Flow being built ## Paste Flow JSON To build from a Flow JSON you already have, copy it, then select **Paste JSON** in the builder. Pasting replaces everything in the builder: * Text, text fields, choices, dropdowns, date pickers and opt-ins become rows you can edit, as if you had added them. * Anything else stays as a **JSON** row: images, components that read screen data such as `${data.min_date}`, buttons that call the Flow's endpoint, and other components from Meta's [Flow JSON reference](https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson). You can open a JSON row to read it, reorder it or remove it, but not edit it. When a Flow has JSON rows, Ringg sends them to Meta exactly as pasted. To change one, edit the JSON and paste it again. > [!NOTE] > > In a Flow with JSON rows, only the values in the last screen's `complete` action come back into the chat. Add every answer you need to its `payload`, such as `"full_name": "${form.full_name}"`. For a Flow built only from rows you can edit, the builder does this for you. The preview draws text, text fields, choices, dropdowns, date pickers and opt-ins. A JSON row shows only its type, such as *DatePicker*. To see it, save the draft and select **View on Meta** below the preview, which opens the Flow in WhatsApp Manager. ## Drafts A draft built in Ringg opens in the builder when you select it in the **Flows** tab. Select **Cancel** to see its details, whose buttons are: * **Edit**: reopens it in the builder. * **Publish**: makes it ready to send. * **Delete draft**: removes it from your WhatsApp account. Only drafts can be deleted. Drafts can't be sent to customers, so an assistant's Flow picker doesn't list them. ## Change a published Flow Meta locks a Flow once it's published, so you change a copy instead: **1. Copy it** Open the Flow in the **Flows** tab and select **Duplicate & edit**. This works for Flows made in WhatsApp Manager too. The copy is a new draft named after the original, with *(copy)* at the end, and it opens in the builder. A copy of a WhatsApp Manager Flow keeps anything the builder can't edit as JSON rows, as with [Paste JSON](#paste-flow-json). Rename the copy if you like. ![Site visit request details with the Published chip and the note Published flows cannot be edited. You can make a duplicate and edit the new draft, next to a Duplicate and edit button](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flow-builder/published.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=23c98f887c9c1902f01445e971ed10b0) A published Flow's details, with Duplicate & edit **2. Edit, save and publish the copy** Make your changes, select **Save draft**, then publish it from its details. If the original used [live data](/documentation/build-agents/agents/whatsapp-agents/flows-live-data), set up its data source again on the copy before publishing. **3. Switch to the copy** * In each assistant that sent the original, remove the old Flow under **WhatsApp Flows**, add the copy, and update its `@` tag in the prompt. * A template's Flow button keeps opening the original. Edit the template to use the copy. ## Troubleshooting The builder names the first problem it finds at the bottom left, next to **Save draft**, which stays greyed out until it's fixed. | You see | Where | What to do | | - | - | - | | *Give the Flow a name.* or *Give screen 2 a title.* | Builder | Fill in the **Name** or the **Page title**. | | *Every question on screen 2 needs a label.* | Builder | Fill in the question's **Label**, or remove the question. | | *"Preferred date of the site visit" is longer than 40 characters.* | Builder | Shorten it. The limits are Meta's. See [What you can add](#what-you-can-add). | | *"Project" needs at least one option.* | Builder | Add an option, or remove the question. | | *Add some content to screen 2.* | Builder | Add a question or text, or select **Delete screen**. | | *Meta found problems in the saved draft* | Top of the builder | The draft is saved, but Meta lists what it won't accept. Fix each one and select **Save** again. | | *Clipboard is not Flow JSON* or *Clipboard is empty* | A pop-up message after **Paste JSON** | Copy the whole Flow JSON, including its `screens` list, and paste again. | | *Clipboard access denied* | A pop-up message after **Paste JSON** | Allow clipboard access for the dashboard in your browser, then paste again. | | *Could not save the Flow* | A pop-up message | The reason is shown under it. Fix it and save again. | | *This step asks the endpoint for the next screen. Only WhatsApp can run it.* | Builder preview | Steps that load live data only run in WhatsApp. Select the next screen's number above the preview, or use **View on Meta** after saving. | ## Good to know > [accordion] Drafts also appear in WhatsApp Manager > > A Flow built in Ringg lives on your WhatsApp Business account, like one made in WhatsApp Manager, so you can see it there too. If you change a draft in WhatsApp Manager, saving it again in Ringg replaces those changes. > [accordion] How answers are named > > Each answer comes back under its question's label, such as *Full name=Priya Sharma*. If you change a label in a copy, update any prompt or analysis that mentions the old one. > [accordion] Flows belong to one WhatsApp Business account > > A Flow is created on the account whose **Flows** tab you build it in. Only assistants with a number on that account can send it. Related topics # WhatsApp Flows Source: https://docs.ringg.ai/documentation/build-agents/agents/whatsapp-agents/flows Send customers a form inside WhatsApp from a Ringg AI agent, like a booking, a lead form or a survey, and get their answers back as the next chat message. A **WhatsApp Flow** is a form that opens inside WhatsApp. The customer taps a button in the chat, fills in a few screens (text fields, dropdowns, dates, checkboxes) and submits. Their answers come straight back into the conversation, so your assistant can act on them. You build the Flow once, either in Ringg's [Flow builder](/documentation/build-agents/agents/whatsapp-agents/flow-builder) or in Meta's **WhatsApp Manager**, which Ringg picks up automatically. Then any WhatsApp assistant can send it, or a message template can carry it as a button. The Flows tab, a Flow's details, adding it to an assistant, a template's Flow button, and the answers in Logs ## Two kinds of Flow | | Static Flow | Dynamic Flow (live data) | | - | - | - | | What it shows | Only what you typed when building it, plus values your assistant fills in when sending | Screens filled in while the customer is inside the form, such as free time slots from your calendar | | Good for | Lead forms, feedback, surveys, address or document collection, KYC details | Appointment booking, picking a branch near a pincode, checking stock or prices | | Setup | This page | This page, then [Flows with live data](/documentation/build-agents/agents/whatsapp-agents/flows-live-data) | Start with a static Flow. Everything on this page also applies to Flows with live data. ## Before you start * A connected WhatsApp Business account with at least one **Ready** number. See [Connect WhatsApp Business](/documentation/inventory/tools-integrations/connect-whatsapp). * A WhatsApp assistant with that number attached. See [Create a WhatsApp agent](/documentation/build-agents/agents/whatsapp-agents/create-an-agent). * To build in WhatsApp Manager instead of Ringg: access to the same WhatsApp Business account in Meta's [WhatsApp Manager](https://business.facebook.com/wa/manage/home/). ## Build a static Flow > [tab] In Ringg > > **1. Open the builder** > > Go to **Tools → WhatsApp Business**, select the **Flows** tab, then **Create Flow**. Name it, for example *Site visit request*, and pick a category. > > **2. Design the screens** > > Fill in the first screen's **Short answer**, add questions and text with **Add content**, and add screens with **+**. The preview on the right works like the customer's phone: fill it in to try the Flow. > > **3. Save, then publish** > > Select **Save draft**. The draft stays open for editing: select **Cancel** to see its details, then **Publish**, and **Publish** again to confirm. Only published Flows can be sent to customers. > > Every component, **View as JSON**, **Paste JSON** and changing a published Flow are covered in [Build WhatsApp Flows in Ringg](/documentation/build-agents/agents/whatsapp-agents/flow-builder). > [tab] In WhatsApp Manager > > **1. Create the Flow in WhatsApp Manager** > > In WhatsApp Manager, open **Account tools → Flows** and select **Create Flow**. > > * **Name**: something your team will recognise, such as *Site visit request*. > * **Categories**: pick the closest match, for example *Lead generation* or *Appointment booking*. > * **Template**: start from one of Meta's templates, or a blank Flow. Choose one **without an endpoint**. > > **2. Design the screens** > > Edit each screen in the builder: rename the title, add or remove fields, and change labels. The preview on the right shows exactly what the customer will see. > > Keep it short. Two or three screens with a handful of fields each gets the most submissions. > > **3. Save, then publish** > > Select **Save**, check the preview once more, then **Publish**. Only published Flows can be sent to customers. > > **4. Find it in Ringg** > > In Ringg, go to **Tools → WhatsApp Business** and select the **Flows** tab. It syncs with Meta every time you open it. Select the refresh icon to sync again at any time. > [!TIP] > > Field labels matter. Ringg shows the customer's answers under these labels in the chat, in **Logs** and in your webhooks, and your assistant reads them too. *Preferred visit date* is clearer than *Date*. > [!WARNING] > > Meta locks a Flow once it is published. To change it later, open it in the **Flows** tab and select **Duplicate & edit**, which also works for a Flow made in WhatsApp Manager. See [Change a published Flow](/documentation/build-agents/agents/whatsapp-agents/flow-builder#change-a-published-flow). ### Check what the Flow collects The **Flows** tab lists every Flow on the account, with its **Status**, how many **Questions** it asks, where its **Live data** comes from, and when it was **Last synced**. ![Flows table with Site visit request (Published, 5 questions), Book a visit and Find a showroom (Draft, From endpoint) and Visit feedback (Published, 2 questions), each with its Meta Flow ID and last synced time](https://mintcdn.com/ringgai-0da73d20/dn4m-eYKyrW_qwbq/media/whatsapp-flows/flows-tab.webp?fit=max\&auto=format\&n=dn4m-eYKyrW_qwbq\&q=85\&s=ca42c46791c9794b8b9ab44b2b2d481b) The Flows tab: two published Flows and two drafts that load live data Select a Flow to open its details: * **The preview** on the right: fill in the form and move between screens as the customer would. The numbers above it jump to a screen. When you submit, it shows the answers and the message your assistant reads. * **Data source**, for a draft or a Flow that loads live data: where its screens get that data. See [Flows with live data](/documentation/build-agents/agents/whatsapp-agents/flows-live-data). * **Technical details**: the Flow's Meta ID, its endpoint, and the data each screen takes. **View on Meta** opens the Flow in WhatsApp Manager. ![Site visit request details: Published and Lead generation chips, Technical details, and Duplicate and edit at the bottom; the preview shows screen 2, Visit details, with Project, Preferred visit date and Visitors and a Request visit button](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flows/flow-details.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=37a767e28c6439cfcb928dc59c2237c6) A published Flow's details, with its second screen in the preview ## Let your assistant send it **1. Add the Flow to the assistant** Open the WhatsApp assistant in the agent editor. In the left menu, select **WhatsApp Flows**, then **Add flow**, and pick your Flow. The list shows published Flows only, so publish a draft from the **Flows** tab first. A Flow that can't be sent is greyed out with the reason, for example *Not read from Meta yet: sync this account's Flows*. If you just published one in WhatsApp Manager, select **Sync from Meta** at the bottom of the list. **2. Write the message around it** The Flow goes out as a chat message with a button. The live preview on the right updates as you type. | Field | What it is | Example | | - | - | - | | **Message** | The text above the button. Required. | *Tap below to pick a slot for your site visit.* | | **Button label** | The button that opens the form, up to 20 characters. Required. | *Book a visit* | | **Header** and **Footer** | Optional lines above and below the message. | *Green Acres Villas* | | **When to send it** | Optional. Plain words telling the assistant when this Flow is useful. | *When the customer wants to visit a project.* | | **Opens on** | The screen the form opens on. Usually its first screen. | *Your details* | ![Set up Site visit request dialog: Message, Button label Book a visit, optional Header and Footer, When to send it, and Opens on Your details; the preview shows the message with a Book a visit button](https://mintcdn.com/ringgai-0da73d20/dn4m-eYKyrW_qwbq/media/whatsapp-flows/flow-setup.webp?fit=max\&auto=format\&n=dn4m-eYKyrW_qwbq\&q=85\&s=dcbddbaa497ca7871f701ae741ad414c) Setting up Site visit request on an assistant, with the live message preview **3. Prefill what you already know (optional)** Under **Prefill**, give a starting value to any field the customer shouldn't have to type again. Leave a field empty and the customer fills it in. **Prefill** appears only when the Flow's opening screen takes starting values, which a Flow written in WhatsApp Manager or as Flow JSON declares with `init-value`. Flows from Ringg's builder have none. | Type | Where the value comes from | Example | | - | - | - | | **Static** | The same fixed value every time | `Bangalore` | | **Variable** | A custom variable of the conversation | `name` | | **Dynamic** | The assistant fills it from the chat. Describe what to put in. | *The city the customer mentioned* | **4. Save** Select **Save**. The Flow appears under **WhatsApp Flows** as a card with its preview. Use the pencil to edit it or the bin to remove it. Its tool name, such as `send_site_visit_request`, is what you tag in the prompt. **5. Tell the assistant when to send it** The assistant only sends a Flow when its prompt says so. In the prompt editor, type `@` and choose the Flow. It is inserted as `@||send_site_visit_request||`. Next to it, say when to send it and what to do with the answers: ```text theme={null} When the customer wants to visit the site, send @||send_site_visit_request|| and say "I've sent you a quick form to pick a date." When they submit it, thank them, repeat the date they picked, and tell them our team will call to confirm. ``` **6. Test it** Open **Test assistant**, scan the QR code with your phone and ask for a site visit. Open the form, fill it in and submit. The assistant should reply using your answers. ## Where the answers show up When the customer submits, the answers arrive as their next message, labelled with the Flow's question labels. > [tab] To your assistant > > The assistant reads the submission as a message from the customer and replies to it straight away: > > ```text theme={null} > User submitted the WhatsApp Flow "Site visit request" (sent with send_site_visit_request): > Full name=Priya Sharma, Preferred visit date=2026-10-02, Visitors=2 > ``` > > It can use these answers in its reply, or pass them to an on-call tool, such as your CRM API or a calendar booking tool. > [tab] In Logs > > In **Logs → WhatsApp**, open the chat and its **Transcript**. The Flow message appears with its button, and the customer's submission shows as **Response sent**. Select **View response** to see every answer, grouped by screen. See [Chat history](/documentation/monitor/logs#whatsapp-chats). > > ![Your response dialog for Site visit request: Your details with Full name Priya Nair and Phone 9876545012, then Visit details with Project Green Acres Villas and Preferred visit date 2026-10-10, and a Close button](https://mintcdn.com/ringgai-0da73d20/dn4m-eYKyrW_qwbq/media/whatsapp-flows/flow-response.webp?fit=max\&auto=format\&n=dn4m-eYKyrW_qwbq\&q=85\&s=fa8d88ece9a7df62189b955e5c7cdc14) > > View response in Logs: the answers grouped by screen > [tab] In your webhooks > > The chat's `transcript` in [chat events](/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events) includes the submission as a `user` message, in the same text the assistant reads: > > ```json theme={null} > { "user": "User submitted the WhatsApp Flow \"Site visit request\" (sent with send_site_visit_request): Full name=Priya Sharma, Preferred visit date=2026-10-02, Visitors=2" } > ``` > > To get the answers as separate fields, add them to the agent's **Advanced Analysis**. ## Open a Flow from a message template A Flow sent by the assistant only reaches customers who messaged you in the last 24 hours. To start the conversation yourself, for example a booking reminder after a missed call, put the Flow on a **message template** as a button. **1. Add a Flow button to a template** Go to **Tools → WhatsApp Business**, select the **Message templates** tab, then **New template**. Under **Buttons**, select **+ Flow**. **2. Pick the Flow** * **Button text**: what the button says, up to 25 characters, such as *Book a visit*. * **Flow**: one of your published Flows. * **Opens on**: the screen it opens on. For a Flow with live data, choose **Loaded by the Flow's endpoint**. A template can have up to three buttons, and one of them can be a Flow button. ![Create message template dialog: the body text, then a Flow button with Button text Book a visit, Flow Site visit request and Opens on Your details; the preview shows the message with a Book a visit button](https://mintcdn.com/ringgai-0da73d20/dn4m-eYKyrW_qwbq/media/whatsapp-flows/template-flow-button.webp?fit=max\&auto=format\&n=dn4m-eYKyrW_qwbq\&q=85\&s=02c56cb9364ca03935dbaa79fc13b88b) A template's Flow button: its text, the Flow it opens and the screen it opens on **3. Submit it for review** Submit the template. Meta reviews it before it can be sent, as with any template. See [Message templates](/documentation/inventory/tools-integrations/connect-whatsapp#message-templates). **4. Send it** Send the approved template like any other: with the **Send WhatsApp Template** tool [during a call or chat](/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools#on-call), or through the [outbound API](/documentation/deploy/whatsapp/start-a-conversation). When the customer submits the form, the answers come back into the chat with the assistant on that number, exactly as above. ## Flow status Ringg only sends **Published** Flows. | Status | Meaning | What to do | | - | - | - | | **Draft** | Saved but not published. | Publish it from its details in the **Flows** tab. For a Flow made in WhatsApp Manager, publish it there, then sync. | | **Published** | Live. | Nothing: it can be sent. | | **Throttled** | Meta is limiting it, usually because of errors or customer complaints. | Check its health in WhatsApp Manager and sync once it is Published again. | | **Blocked** | Meta stopped it. | Check its health in WhatsApp Manager, or build a new Flow. | | **Deprecated** | Retired in WhatsApp Manager. | Use another Flow. | ## Troubleshooting | You see | Where | What to do | | - | - | - | | *No Flows on this account yet* | Flows tab | Select **Create Flow**. Or build and publish one in WhatsApp Manager under the same WhatsApp Business account, then select **Sync from Meta**. | | *No published flows* | The assistant's Flow picker | Publish a Flow from the **Flows** tab, or publish it in WhatsApp Manager and select **Sync from Meta**. | | *Draft: publish it from the Flows tab* | A template's Flow list, or an assistant's WhatsApp Flows | Open the Flow in the **Flows** tab and select **Publish**. | | *Draft: publish it in WhatsApp Manager* | A template's Flow list, or an assistant's WhatsApp Flows | Publish the Flow in WhatsApp Manager, then sync. | | *Not read from Meta yet: sync this account's Flows* | The Flow picker | Select **Sync from Meta**. | | *Its questions are filled in when it's sent* | The Flow picker | This Flow builds its questions from data at send time, so Ringg can't send it. Use a Flow whose questions are written in the Flow itself. | | *Uses Ringg's retired form endpoint* | Flows tab and picker | An older form Flow. Open it and use **Set up data source**, or build a new Flow. | | *Not in this WhatsApp account* | The assistant's Flow list | The Flow was deleted, or the assistant's number moved to another account. Remove it and add another. | | The assistant never sends the Flow | The chat | Tag the Flow in the prompt with `@` and say when to send it. | | The customer's form says it can't open | The phone | The Flow isn't published, or it is **Blocked**. Check its status in the Flows tab. | ## Good to know > [accordion] The 24-hour window applies > > An assistant sends a Flow as a normal chat message, so WhatsApp only delivers it within 24 hours of the customer's last message. Outside that window, send a template with a Flow button. > [accordion] Flows belong to one WhatsApp Business account > > The Flows tab lists the Flows of the connected account. An assistant can use the Flows of the account its number belongs to. > [accordion] Changing a Flow > > Published Flows can't be edited. Open the Flow in the **Flows** tab and select **Duplicate & edit**, which also works for a Flow made in WhatsApp Manager. Publish the copy, then in the assistant remove the old Flow and add the new one. Update the `@` tag in the prompt too. See [Change a published Flow](/documentation/build-agents/agents/whatsapp-agents/flow-builder#change-a-published-flow). Related topics # WhatsApp Flows with live data Source: https://docs.ringg.ai/documentation/build-agents/agents/whatsapp-agents/flows-live-data Fill a WhatsApp Flow's screens while the customer is using it, such as free appointment slots from Calendly, Google Calendar or Cal.com, through Ringg AI. A static Flow only shows what you typed when you built it. A **dynamic Flow** asks for fresh information while the customer is inside it. In the dashboard, a Flow's **Data source** says where that information comes from, and the **Live data** column of the Flows tab shows it. For example, the customer picks a date and the next screen lists the times still free in your calendar that day. Ringg does the technical part for you. It hosts the connection WhatsApp needs (the *endpoint*), handles WhatsApp's encryption, and fetches the data. You choose where the data comes from: | Source | Use it for | Who sets it up | | - | - | - | | **Calendar** | Showing free appointment slots from Calendly, Google Calendar or Cal.com | Anyone, by following this page. No code needed. | | **Server** | Anything from your own systems: branches near a pincode, stock, prices, order status | A developer on your team. See [Live data from your server](/documentation/build-agents/agents/whatsapp-agents/flows-your-server). | > [!NOTE] > > Read [WhatsApp Flows](/documentation/build-agents/agents/whatsapp-agents/flows) first. Adding a Flow to an assistant, the prompt, and where answers show up all work the same way with live data. ## How a booking Flow works ```mermaid theme={null} sequenceDiagram participant C as Customer participant W as WhatsApp participant R as Ringg participant Cal as Your calendar C->>W: Taps "Book a visit" W->>R: Which screen first? R-->>W: Date screen, today to 30 days ahead C->>W: Picks 2 Oct, taps "See times" W->>R: Free times on 2 Oct? R->>Cal: Free slots on 2 Oct Cal-->>R: 10:00, 10:30, 14:00 R-->>W: Time screen with those slots C->>W: Picks 10:00, adds name and email, taps "Book" W->>R: The answers, into the chat R->>Cal: Your assistant books 10:00 with its booking tool R-->>C: "You're booked for 2 Oct at 10:00 AM" ``` The Flow itself doesn't book anything. It shows the free times and sends the customer's choice back to the chat. Your assistant then books the slot with the calendar's booking tool and confirms, just as it would on a call. ## Set up appointment booking ### Before you start * A WhatsApp assistant with a **Ready** WhatsApp number attached. See [Create a WhatsApp agent](/documentation/build-agents/agents/whatsapp-agents/create-an-agent). * Calendly, Google Calendar or Cal.com connected under **Tools** in Ringg. ### The booking design Both ways below use this design: a **Pick a date** screen, then a **Pick a time** screen that lists the free times and asks for the customer's name and email. > [accordion] Booking Flow design: copy all of it > > ```json theme={null} > { > "version": "6.3", > "data_api_version": "3.0", > "routing_model": { "PICK_DATE": ["PICK_SLOT"], "PICK_SLOT": [] }, > "screens": [ > { > "id": "PICK_DATE", > "title": "Pick a date", > "data": { > "min_date": { "type": "string", "__example__": "2026-10-01" }, > "max_date": { "type": "string", "__example__": "2026-10-31" } > }, > "layout": { > "type": "SingleColumnLayout", > "children": [ > { > "type": "DatePicker", > "name": "date", > "label": "Date", > "required": true, > "min-date": "${data.min_date}", > "max-date": "${data.max_date}" > }, > { > "type": "Footer", > "label": "See times", > "on-click-action": { "name": "data_exchange", "payload": { "date": "${form.date}" } } > } > ] > } > }, > { > "id": "PICK_SLOT", > "title": "Pick a time", > "terminal": true, > "data": { > "date": { "type": "string", "__example__": "2026-10-02" }, > "slots": { > "type": "array", > "items": { > "type": "object", > "properties": { "id": { "type": "string" }, "title": { "type": "string" } } > }, > "__example__": [{ "id": "2026-10-02T10:00:00+05:30", "title": "10:00 AM" }] > } > }, > "layout": { > "type": "SingleColumnLayout", > "children": [ > { > "type": "RadioButtonsGroup", > "name": "slot", > "label": "Available times", > "data-source": "${data.slots}", > "required": true > }, > { "type": "TextInput", "name": "name", "label": "Your name", "required": true }, > { "type": "TextInput", "name": "email", "label": "Email", "input-type": "email", "required": true }, > { > "type": "Footer", > "label": "Book", > "on-click-action": { > "name": "complete", > "payload": { > "date": "${data.date}", > "slot": "${form.slot}", > "name": "${form.name}", > "email": "${form.email}" > } > } > } > ] > } > } > ] > } > ``` ### The quick way: build it in Ringg Plan about 5 minutes. Pasting the booking design into Ringg, connecting Google Calendar as its data source, and publishing it **1. Create the Flow** Go to **Tools → WhatsApp Business**, select the **Flows** tab, then **Create Flow**. Name it, for example *Book a visit*, and choose the category **Appointment booking**. **2. Paste the booking design** Copy the [booking design](#the-booking-design) above, then select **Paste JSON** in the builder. The **Pick a date** and **Pick a time** screens appear. The parts that read live data stay as **JSON** rows, which is expected: Ringg sends them to Meta exactly as written. ![Create a Flow dialog with Name Book a visit and Category Appointment booking; screen 1. Pick a date holds two JSON rows, DatePicker and Footer, and the preview shows their names](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flows-live-data/pasted-design.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=8356b025a9c3b09e2b8f377bc8f1ec4b) The booking design pasted into the builder **3. Save the draft** Select **Save draft**, then **Cancel** to see the Flow's details. **4. Connect your calendar** Under **Data source**, select **Set up data source**. Keep **Calendar** and pick your connected calendar. **Date screen** and **Slots screen** are already set to **Pick a date** and **Pick a time**. Check the **Timezone**; the other settings are explained in the **Connect your calendar** step of [Or design it in WhatsApp Manager](#or-design-it-in-whatsapp-manager). Select **Save**. ![Data source form with Calendar selected, Google Calendar (Site visits), Calendar ID primary, Slot length 30 minutes, Date screen Pick a date, Slots screen Pick a time, Date field date, Timezone Asia/Kolkata, Days ahead 30 and Most slots shown 20, with Cancel and Save](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flows-live-data/calendar-source.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=3f285ec3f77f9f52b377a2434e235078) A Google Calendar data source for the booking Flow > [!TIP] > > **Data source** lists the calendar, the date screen and the slots screen. **5. Publish it** Select **Publish**, then **Publish** again to confirm. In the **Flows** tab, **Live data** shows **Calendar, via Ringg**. ![Flows table with Book a visit at the top, Published, 4 questions, Live data Calendar, via Ringg; below it Site visit request, Find a showroom (Draft, From endpoint) and Visit feedback](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flows-live-data/flows-tab.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=9ab694d916844249f73636ecbe6c381a) The Flows tab after publishing: Book a visit reads its data from the calendar Now [let your assistant send it and book](#let-your-assistant-send-it-and-book). ### Or design it in WhatsApp Manager If you'd rather keep the Flow in WhatsApp Manager, for example to edit its layout there, build it from the same design. You need access to the same WhatsApp Business account in Meta's [WhatsApp Manager](https://business.facebook.com/wa/manage/home/). Plan about 15 minutes. **1. Create the Flow in WhatsApp Manager** In WhatsApp Manager, open **Account tools → Flows** and select **Create Flow**. Name it, for example *Book a visit*, choose the category **Appointment booking**, and start from a blank Flow. **2. Paste the ready-made design** The builder shows the Flow's code on the left and a preview on the right. Select everything in the code editor, delete it, and paste the [booking design](#the-booking-design). The preview should show a **Pick a date** screen. Select **Save**. Don't publish yet: the Flow needs its data source connected first. **3. Open the Flow in Ringg** In Ringg, go to **Tools → WhatsApp Business** and select the **Flows** tab. It syncs as it opens. Select **Book a visit**. It shows as **Draft**, which is expected. **4. Connect your calendar** In the Flow's details, under **Data source**, select **Set up data source**. Keep **Calendar** and fill in: | Setting | What to enter | | - | - | | **Calendar** | The calendar to read free times from. | | **Event type link** (Calendly) or **Event type ID** (Cal.com), both optional | The meeting type to offer, for example your *30 minute site visit*. Leave it empty to use the account's first one. In Cal.com, the ID is the number at the end of the address when you edit the event type. For Calendly, it is the event type's API link, which starts with `https://api.calendly.com/event_types/`. | | **Calendar ID** (optional) and **Slot length (minutes)** (Google Calendar) | Leave the calendar ID empty to use the main calendar. Slot length is how long each appointment is, in minutes. | | **Date screen** | **Pick a date** | | **Slots screen** | **Pick a time** | | **Date field** | `date`. Leave it as it is. | | **Timezone** | Where your appointments happen, such as `Asia/Kolkata` or `Asia/Dubai`. | | **Days ahead** | How far ahead customers can book. 30 by default. | | **Most slots shown** | The most times listed for one day. 20 by default. | Select **Save**. **5. Check the result** After saving, **Data source** shows where things stand: * Only the calendar, the date screen and the slots screen: everything is connected. Go to the next step. * ***Meta kept this Flow's own endpoint***, with a URL beneath it. This happens when the Flow was already published. Copy the URL with the copy icon. In WhatsApp Manager, open the Flow, paste the URL as its **endpoint**, and publish it again. **6. Finish in WhatsApp Manager** Back in the Flow in WhatsApp Manager: 1. Open the Flow's endpoint settings. The endpoint URL should end in `/exchange`. 2. **Connect your Meta app**: choose the app you connected when you set up WhatsApp Business on Ringg. 3. Run the **health check**. It should pass. 4. Open the **Preview**, pick a date and check that times appear. 5. **Publish** the Flow. **7. Sync in Ringg** In the **Flows** tab, select the refresh icon. **Book a visit** now shows as **Published**, with **Calendar, via Ringg** under **Live data**. ## Let your assistant send it and book **1. Add the Flow to the assistant** In the agent editor, select **WhatsApp Flows**, then **Add flow**, and pick **Book a visit**. Write the **Message** and **Button label**, for example *Tap below to pick a time for your visit.* and *Book a visit*. Keep **Opens on** set to **Loaded by the Flow's endpoint**, so every customer starts on today's dates. Select **Save**. **2. Add the calendar's booking tool** Select **Tools** in the left menu, then **On-call → Integration**, pick your calendar and add its booking tool: | Calendar | Booking tool | | - | - | | Calendly | **Schedule Event** | | Google Calendar | **Create Booking** | | Cal.com | **Create Booking** | Set the start time, name and email to **Dynamic**, so the assistant fills them in from the Flow's answers. Give fixed settings, such as the event type and timezone, a **Static** value. **3. Tell the assistant what to do** Tag both tools in the prompt with `@`: ```text theme={null} When the customer wants to book a visit, send @||send_book_a_visit||. When they submit it, book the time they picked with the calendar booking tool, using "Available times" as the start time and their name and email. Then confirm the date and time in plain words, like "2 Oct at 10:00 AM". If the time is no longer free, say so and send @||send_book_a_visit|| again. ``` **4. Test it** Open **Test assistant**, scan the QR code and ask to book a visit. Pick a date, check that the times match your calendar, choose one, submit, and look for the booking in your calendar. The answers reach the assistant like this. The time the customer picked arrives in full, with its date and timezone, which is the format booking tools expect: ```text theme={null} User submitted the WhatsApp Flow "Book a visit" (sent with send_book_a_visit): date=2026-10-02, Available times=2026-10-02T10:00:00+05:30, Your name=Priya Sharma, Email=priya@example.com ``` ## Change the design safely You can change the words the customer sees without breaking anything: * Screen titles, such as `"title": "Pick a date"`. * Field and button labels, such as `"label": "See times"`. * Extra questions on the **Pick a time** screen, such as a phone number or notes. Add each one to the `payload` of the **Book** button as well, or its answer won't come back. Leave these exactly as they are, because Ringg relies on them: | Keep | Why | | - | - | | `"data_api_version": "3.0"` and the `routing_model` | They tell WhatsApp this Flow loads live data. | | The screen IDs `PICK_DATE` and `PICK_SLOT` | Ringg sends each answer to these screens. If you rename them, pick the new names under **Data source** again. | | `"name": "date"` on the date picker, and `"date"` in the **See times** payload | That is the **Date field** Ringg reads. | | `${data.min_date}`, `${data.max_date}`, `${data.slots}`, `${data.date}` and the `data` blocks | These are where Ringg's dates and free times appear. | To change a published Flow, open it in the **Flows** tab and select **Duplicate & edit**. Edit the copy, set up its data source again, and publish it. See [Change a published Flow](/documentation/build-agents/agents/whatsapp-agents/flow-builder#change-a-published-flow). ## Troubleshooting | You see | Where | What to do | | - | - | - | | *Connect Calendly, Google Calendar or Cal.com in Integrations first.* | Data source setup | Connect a calendar under **Tools**, then come back. | | *Meta kept this Flow's own endpoint* | Data source, after saving | Paste the URL shown as the Flow's endpoint in WhatsApp Manager, publish, then sync. | | Health check fails with *Unknown Flow* | WhatsApp Manager | The data source isn't saved on this Flow in Ringg yet. Save it, then run the check again. | | Health check fails with a signature error (432) | WhatsApp Manager | The wrong Meta app is connected to the Flow. Connect the app you use with Ringg. | | The Flow says it can't open, or the health check reports a key problem (421) | Phone or WhatsApp Manager | The number's encryption key isn't Ringg's. In Ringg, select **Edit source** under the Flow's **Data source** and save again. This puts Ringg's key back on every number of the account. | | *No free slots on 2 Oct. Pick another date.* | The customer's phone | The calendar has no free times that day. Check the event type and the calendar's working hours. | | *Couldn't load free slots. Please try again.* | The customer's phone | Ringg couldn't read the calendar. Reconnect it under **Tools** and check the event type. | | *Booking isn't available right now.* | The customer's phone | The calendar was disconnected. Reconnect it, then pick it again under **Data source**. | | Times are an hour or more off | The customer's phone | Set the right **Timezone** under **Data source**. | ## Good to know > [accordion] Ringg sets an encryption key on your WhatsApp numbers > > WhatsApp encrypts everything a Flow sends, using a key set on each phone number. When you save a data source, Ringg puts its key on every number of the WhatsApp Business account, reusing the key it already has. If a developer connected the same numbers to their own Flow server with a different key, that setup stops working. Talk to them first, or have them use [a server data source](/documentation/build-agents/agents/whatsapp-agents/flows-your-server) instead. > [accordion] Published Flows > > Changing a published Flow's endpoint moves it back to Draft in WhatsApp Manager, so Ringg never changes it for you. If a published Flow isn't already using Ringg's endpoint, saving its data source shows the URL to paste in WhatsApp Manager, and you publish the Flow again there. Setting up the data source before you publish avoids this. > [accordion] A slot can be taken in the meantime > > Free times are read when the customer picks a date. If someone else books the same time before they submit, the booking tool returns an error and the assistant can offer another time, as the prompt above tells it to. > [accordion] Remove a data source > > Open the Flow in the **Flows** tab, select **Edit source** under **Data source**, then **Remove**. The Flow then has nowhere to load its data from, so stop sending it or remove it from your assistants first. Related topics # Live data from your server Source: https://docs.ringg.ai/documentation/build-agents/agents/whatsapp-agents/flows-your-server Answer a WhatsApp Flow's screens from your own API. Ringg AI handles WhatsApp's encryption and sends your server plain, signed JSON for each screen. Choose **Server** as a Flow's **Data source** when its screens need data from your own systems, such as branches near a pincode, stock, prices, order status or availability from a system Ringg doesn't connect to. WhatsApp normally requires every Flow endpoint to handle its RSA and AES encryption, key management and health checks. With this option, Ringg does all of that. Your server gets one plain JSON `POST` per screen change, signed so you can trust it, and returns the next screen as JSON. ```mermaid theme={null} sequenceDiagram participant W as WhatsApp participant R as Ringg participant S as Your server W->>R: Encrypted request R->>R: Check Meta's signature and decrypt R->>S: POST JSON, X-Ringg-Signature S-->>R: {"screen": ..., "data": ...} R-->>W: Encrypted next screen ``` > [!NOTE] > > This page is for developers. For the dashboard steps and how answers reach your assistant, see [WhatsApp Flows](/documentation/build-agents/agents/whatsapp-agents/flows) and [Flows with live data](/documentation/build-agents/agents/whatsapp-agents/flows-live-data). ## What you need to build 1. **A Flow** in WhatsApp Manager whose screens read data from the endpoint. 2. **One HTTPS endpoint** on your server that: * accepts `POST` requests with a JSON body; * checks the `X-Ringg-Signature` header against the raw body; * answers within **7 seconds** with HTTP `200` and the next screen as JSON. That is all. You don't handle WhatsApp's encryption keys, the health check (`ping`) or WhatsApp's error notifications. Ringg answers those itself. ## Example: find a showroom by pincode The customer enters a pincode, your server looks up nearby showrooms, and the customer picks one. The same pattern works for any lookup. ### 1. The Flow Create a Flow in WhatsApp Manager (**Account tools → Flows → Create Flow**), paste this into the code editor and **Save**. Don't publish it yet. ```json theme={null} { "version": "6.3", "data_api_version": "3.0", "routing_model": { "PINCODE": ["PICK_SHOWROOM"], "PICK_SHOWROOM": [] }, "screens": [ { "id": "PINCODE", "title": "Find a showroom", "layout": { "type": "SingleColumnLayout", "children": [ { "type": "TextInput", "name": "pincode", "label": "Your pincode", "input-type": "number", "required": true }, { "type": "Footer", "label": "Find showrooms", "on-click-action": { "name": "data_exchange", "payload": { "pincode": "${form.pincode}" } } } ] } }, { "id": "PICK_SHOWROOM", "title": "Pick a showroom", "terminal": true, "data": { "pincode": { "type": "string", "__example__": "560001" }, "showrooms": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" } } }, "__example__": [{ "id": "blr-mg-road", "title": "MG Road", "description": "2.1 km away" }] } }, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "RadioButtonsGroup", "name": "showroom", "label": "Showrooms near you", "data-source": "${data.showrooms}", "required": true }, { "type": "Footer", "label": "Confirm", "on-click-action": { "name": "complete", "payload": { "pincode": "${data.pincode}", "showroom": "${form.showroom}" } } } ] } } ] } ``` What makes it a live-data Flow: * `"data_api_version": "3.0"` and a `routing_model` listing which screen can lead to which. * A `data_exchange` action. Its `payload` is exactly what your server receives as `data`. * A `data` block on each screen that shows your server's values, with an `__example__` for Meta's preview. Your response must match these types. > [!TIP] > > You can also create this Flow in Ringg: in the **Flows** tab, select **Create Flow**, then **Paste JSON** with the design above, and **Save draft**. After connecting your server below, publish it from its details instead of WhatsApp Manager. ### 2. The endpoint ```python Python (FastAPI) theme={null} import hashlib import hmac import json import os from fastapi import FastAPI, HTTPException, Request app = FastAPI() SIGNING_SECRET = os.environ["RINGG_FLOW_SIGNING_SECRET"] SHOWROOMS = { "560001": [{"id": "blr-mg-road", "title": "MG Road", "description": "2.1 km away"}], } @app.post("/whatsapp-flow") async def whatsapp_flow(request: Request): raw_body = await request.body() expected = "sha256=" + hmac.new(SIGNING_SECRET.encode(), raw_body, hashlib.sha256).hexdigest() if not hmac.compare_digest(expected, request.headers.get("X-Ringg-Signature", "")): raise HTTPException(status_code=401) body = json.loads(raw_body) data = body.get("data") or {} if body["action"] == "data_exchange" and body.get("screen") == "PINCODE": pincode = str(data.get("pincode", "")).strip() showrooms = SHOWROOMS.get(pincode) if not showrooms: # Keeps the customer on this screen and shows the message. return {"screen": "PINCODE", "data": {"error_message": f"No showroom near {pincode} yet."}} return {"screen": "PICK_SHOWROOM", "data": {"pincode": pincode, "showrooms": showrooms}} # INIT (the Flow opened) and BACK: start on the first screen. return {"screen": "PINCODE", "data": {}} ``` ```javascript Node.js (Express) theme={null} const crypto = require("crypto"); const express = require("express"); const app = express(); const SIGNING_SECRET = process.env.RINGG_FLOW_SIGNING_SECRET; const SHOWROOMS = { "560001": [{ id: "blr-mg-road", title: "MG Road", description: "2.1 km away" }], }; // express.raw keeps the exact bytes Ringg signed. app.post("/whatsapp-flow", express.raw({ type: "application/json" }), (req, res) => { const expected = "sha256=" + crypto.createHmac("sha256", SIGNING_SECRET).update(req.body).digest("hex"); const received = req.get("X-Ringg-Signature") || ""; if (received.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected))) { return res.sendStatus(401); } const { action, screen, data = {} } = JSON.parse(req.body); if (action === "data_exchange" && screen === "PINCODE") { const pincode = String(data.pincode || "").trim(); const showrooms = SHOWROOMS[pincode]; if (!showrooms) { return res.json({ screen: "PINCODE", data: { error_message: `No showroom near ${pincode} yet.` } }); } return res.json({ screen: "PICK_SHOWROOM", data: { pincode, showrooms } }); } // INIT (the Flow opened) and BACK: start on the first screen. res.json({ screen: "PINCODE", data: {} }); }); app.listen(3000); ``` ### 3. Connect it in Ringg Choosing Server as a Flow's data source, saving it, and copying the signing secret **1. Open the Flow** Go to **Tools → WhatsApp Business**, select the **Flows** tab and open the Flow. **2. Enter your server's URL** Under **Data source**, select **Set up data source**, choose **Server** and enter your endpoint's URL in **Server URL**, for example `https://api.example.com/whatsapp-flow`. It must start with `https://`. Select **Save**. ![Find a showroom details: the Data source form with the encryption key notice, Choose data source set to Server, and Server URL https://api.acme-lending.example/whatsapp-flow with a description of the request, response and signature, above Cancel and Save](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flows-your-server/server-source.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=5925adbeac31da4d228945deba246545) Choosing Server as the data source and entering its URL **3. Copy the signing secret** Ringg shows a **signing secret** once. Copy it with the copy icon and store it on your server, for example as `RINGG_FLOW_SIGNING_SECRET`. It can't be shown again. If it is lost, select **Edit source**, tick **Issue a new signing secret** and save. ![Data source showing Source https://api.acme-lending.example/whatsapp-flow, then Signing secret: copy it now, it won't be shown again, with the secret and a copy icon, and an Edit source button](https://mintcdn.com/ringgai-0da73d20/-vF1MHd0bJHQ6pVT/media/whatsapp-flows-your-server/signing-secret.webp?fit=max\&auto=format\&n=-vF1MHd0bJHQ6pVT\&q=85\&s=ce0a5ae686e4aa0f1503b9097e28b9c0) The signing secret, shown once after saving **4. Check the endpoint** If Ringg says ***Meta kept this Flow's own endpoint***, the Flow was already published. Copy the URL shown, paste it as the Flow's endpoint in WhatsApp Manager, and publish the Flow again. That URL is Ringg's, not your server's: WhatsApp calls Ringg, and Ringg calls you. **5. Finish in WhatsApp Manager** Open the Flow's endpoint settings, connect the Meta app you use with Ringg, and run the **health check**. Ringg answers it, so it passes even before your server is live. Then **Preview** the Flow, which calls your server for real, and **Publish** it. **6. Add it to an assistant** Sync the **Flows** tab, then add the Flow to a WhatsApp assistant as described in [WhatsApp Flows](/documentation/build-agents/agents/whatsapp-agents/flows#let-your-assistant-send-it). Set **Opens on** to **Loaded by the Flow's endpoint**, so your server is asked for the first screen. ## Request reference Ringg sends one `POST` for every step that needs your server. | `action` | When | `screen` | `data` | | - | - | - | - | | `INIT` | The customer opened a Flow sent with **Opens on: Loaded by the Flow's endpoint** | `null` | `{}` | | `data_exchange` | The customer pressed a button whose action is `data_exchange` | The screen they were on | That action's `payload` | | `BACK` | The customer went back to a screen that has `"refresh_on_back": true` | The screen they went back to | `{}` | ```json theme={null} { "action": "data_exchange", "screen": "PINCODE", "data": { "pincode": "560001" }, "flow_token": "rf2.3c6e2a1d-5b7f-4e8a-9c21-0f4d7b8e6a53.b7e4c2a0-1d3f-4e5a-8b9c-0d1e2f3a4b5c.9f2c41ab", "flow": { "id": "8d1f3a6e-2b4c-4d5e-9f60-7a8b9c0d1e2f", "meta_flow_id": "1234567890123456", "name": "Find a showroom" }, "context": { "chat_id": "3c6e2a1d-5b7f-4e8a-9c21-0f4d7b8e6a53", "tool_id": "b7e4c2a0-1d3f-4e5a-8b9c-0d1e2f3a4b5c" } } ``` | Field | Description | | - | - | | `action` | `INIT`, `data_exchange` or `BACK`, as above. | | `screen` | The screen ID the request comes from. `null` for `INIT`. | | `data` | What the Flow sent. For `data_exchange`, the action's `payload` with the customer's input filled in. | | `flow_token` | WhatsApp's token for this Flow session. Pass it back if you [finish the Flow yourself](#finish-the-flow-from-your-server). Treat it as opaque. | | `flow.id` | Ringg's ID for the Flow. | | `flow.meta_flow_id` | Meta's ID for the Flow, as shown in WhatsApp Manager. | | `flow.name` | The Flow's name. | | `context.chat_id` | The Ringg chat the Flow was sent in. It is the same `chat_id` as in [chat events](/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events) and **Logs → WhatsApp**, so you can tie a Flow session to a conversation. | | `context.tool_id` | The ID of the assistant's Flow tool that sent it, which stays the same while the Flow is on the assistant. `template` when the customer opened it from a template's Flow button. | `context` is `{}` when the Flow wasn't sent by Ringg, for example in WhatsApp Manager's preview. Don't require it. **Headers** | Header | Value | | - | - | | `Content-Type` | `application/json` | | `X-Ringg-Signature` | `sha256=` followed by the hex HMAC-SHA256 of the **raw request body**, keyed with your signing secret | > [!WARNING] > > Verify the signature against the exact bytes you received, before parsing them. Parsing the JSON and serialising it again changes the spacing, so the signature won't match. ## Response reference Return HTTP `200` with a JSON body naming the next screen and the data it reads: ```json theme={null} { "screen": "PICK_SHOWROOM", "data": { "pincode": "560001", "showrooms": [{ "id": "blr-mg-road", "title": "MG Road" }] } } ``` * `screen` must be a screen of the Flow that the current screen can lead to in `routing_model`, or the current screen itself. * `data` must match the types in that screen's `data` block. Ringg passes your response to WhatsApp unchanged, so a response that breaks these rules shows the customer WhatsApp's generic error. ### Keep the customer on the screen with a message Return the screen the request came from, with `error_message` in `data`. WhatsApp shows the message at the bottom of the screen and keeps what the customer entered. ```json theme={null} { "screen": "PINCODE", "data": { "error_message": "No showroom near 560999 yet." } } ``` ### Finish the Flow from your server To close the Flow yourself, for example after you created an order, return WhatsApp's `SUCCESS` screen with the request's `flow_token` and anything you want to send back. You don't need a `SUCCESS` screen in the Flow JSON. ```json theme={null} { "screen": "SUCCESS", "data": { "extension_message_response": { "params": { "flow_token": "", "order_id": "A-1042", "showroom": "MG Road" } } } } ``` The `params` reach the assistant as the customer's submission, just like a Flow finished with a `complete` action: *order\_id=A-1042, showroom=MG Road*. Use readable keys, since they are the labels the assistant sees. ## Rules and limits | Rule | Detail | | - | - | | **HTTPS only** | The URL must start with `https://`. | | **Public address** | Addresses on private or internal networks are refused, both when you save and before every request. | | **7 seconds** | WhatsApp gives Ringg 10 seconds, so your server gets 7. There is one attempt and no retry. | | **No redirects** | Answer at the URL you saved. Redirects aren't followed. | | **HTTP 200** | Any other status, a timeout, or a body without `screen` or `data` keeps the customer on the screen with *This form can't load right now. Please try again shortly.* | | **One secret per Flow** | Each Flow with live data has its own signing secret. | | **New secret takes effect at once** | After **Issue a new signing secret**, requests are signed with the new secret straight away. Accept both secrets on your server while you switch. | ## Test your endpoint Send your server a signed request from a terminal before connecting it in Ringg: ```bash theme={null} SECRET="your signing secret" BODY='{"action": "data_exchange", "screen": "PINCODE", "data": {"pincode": "560001"}, "flow_token": "test", "flow": {"id": "test", "meta_flow_id": "1", "name": "Find a showroom"}, "context": {}}' SIGNATURE=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //') curl -s https://api.example.com/whatsapp-flow \ -H "Content-Type: application/json" \ -H "X-Ringg-Signature: sha256=$SIGNATURE" \ -d "$BODY" ``` You should get the `PICK_SHOWROOM` screen back. Then use **Preview** in WhatsApp Manager to run the Flow end to end. ## Troubleshooting | Symptom | Cause | | - | - | | **Server URL** is marked invalid, or saving fails | The URL isn't `https://`, or it points to a private or internal address. | | Every request fails your signature check | You're hashing re-serialised JSON instead of the raw body, or using an old secret. | | *This form can't load right now* on the phone | Your server took longer than 7 seconds, returned a status other than `200`, redirected, or returned a body without `screen` or `data`. | | WhatsApp's generic error on the phone | Your response names a screen the current one can't lead to, or its `data` doesn't match the screen's `data` block. | | Your server gets no `INIT` | The Flow was sent with **Opens on** set to a screen, so it opens without asking you. Set it to **Loaded by the Flow's endpoint**. | | The health check fails | Ringg answers the health check itself, so the problem is on the Meta side. See [troubleshooting for live data](/documentation/build-agents/agents/whatsapp-agents/flows-live-data#troubleshooting). | > [!WARNING] > > Ringg sets its own encryption key on every number of the WhatsApp Business account when you save a data source. If you also run a WhatsApp Flow endpoint of your own on those numbers with a different key, it stops working. Move those Flows to a **Server** data source so Ringg handles the encryption for all of them. Related topics # WhatsApp agents Source: https://docs.ringg.ai/documentation/build-agents/agents/whatsapp-agents/overview Learn what a Ringg AI WhatsApp agent is, how a chat runs, how it differs from a voice agent, and the order to connect Meta, add a number, build and test it. A WhatsApp agent is one of the four [agent types](/documentation/build-agents/agents/agent-types#agent-types-by-channel), next to outbound, inbound and webcall. It has the same prompt, knowledge base, custom variables and tools as a voice agent, but it replies in WhatsApp messages on a WhatsApp Business number you connect through Meta. When a customer calls that number from WhatsApp, the same agent answers by voice; it can't place WhatsApp calls. Use it when customers already reach you on WhatsApp, or to follow up a call in writing. You don't need a WhatsApp agent to *send* a WhatsApp message from a voice agent: once WhatsApp Business is connected, any agent can send a template or text through the [WhatsApp tools](/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools#on-call). ## The steps in order | Step | Page | What you end up with | | - | - | - | | 1 | [Connect WhatsApp](/documentation/inventory/tools-integrations/connect-whatsapp) (Inventory) | A WhatsApp Business account linked to your workspace through Meta's sign-in | | 2 | [Add and register a number](/documentation/inventory/tools-integrations/connect-whatsapp#add-a-number) | A number marked **Ready**, your own or one bought through Ringg | | 3 | [Message templates](/documentation/inventory/tools-integrations/connect-whatsapp#message-templates) (optional) | Meta-approved messages for anything you send outside the 24-hour window | | 4 | [Create a WhatsApp agent](/documentation/build-agents/agents/whatsapp-agents/create-an-agent) | The agent attached to the number, with a chat prompt and session timeouts | | 5 | [WhatsApp Flows](/documentation/build-agents/agents/whatsapp-agents/flows) (optional) | Forms the agent sends inside the chat, like bookings, lead forms and surveys, with answers back in the chat | | 6 | [On-call](/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools#on-call) and [post-call](/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools#post-call) tools | Messages sent from any agent, during a call or after it | | 7 | [Start a conversation by API](/documentation/deploy/whatsapp/start-a-conversation) or [WhatsApp Relay](/documentation/deploy/whatsapp/relay-overview) (Deploy) | Outbound first messages from your backend; or the agent on a number that stays in your own Meta account | | 8 | [WhatsApp chats in Logs](/documentation/monitor/logs#whatsapp-chats) (Monitor) and [chat events](/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events#whatsapp-chat-events) (Webhooks) | Every chat readable and exportable in Logs, and a webhook when a chat closes | ![WhatsApp account page for Acme Lending showing the Phone numbers tab with one Ready number and one Pending number that has a Register button](https://mintcdn.com/ringgai-0da73d20/XUOcNie5hfK3q--Y/media/whatsapp-onboarding/phone-numbers.webp?fit=max\&auto=format\&n=XUOcNie5hfK3q--Y\&q=85\&s=67a78cd98a702b3185e7358881d2ef40) Step 2 ends here: the connected account's Phone numbers tab with a Ready number ## How a chat runs 1. A customer messages your WhatsApp Business number, or your backend [messages them first](/documentation/deploy/whatsapp/start-a-conversation) with a template. 2. The agent attached to that number opens a chat. Pre-call tools run, then the agent replies from its prompt, knowledge base and on-call tools. 3. The chat closes when the agent calls **End Chat** or the customer goes quiet for the agent's idle timeout ([session timeouts](/documentation/build-agents/agents/whatsapp-agents/create-an-agent#when-a-chat-opens-and-closes)). Post-call tools and analysis then run, and each stage can notify your [webhook](/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events#whatsapp-chat-events). ## WhatsApp compared with voice | | Voice agent | WhatsApp agent | | - | - | - | | Number | Telephony number ([Numbers](/documentation/inventory/phone-numbers/overview)) | Registered WhatsApp Business number | | Structure | [Single-prompt or multi-prompt](/documentation/build-agents/agents/agent-types#agent-types-by-build-style) | Single-prompt only | | Webhook events | `call_*`, `recording_completed`, analysis events | `chat_completed`, analysis events | | Conversations | **Logs → Phone** | **Logs → WhatsApp** | | [Analytics](/documentation/monitor/analytics) | Yes | No, Analytics covers calls only | ## Good to know > [accordion] Why a template is needed after 24 hours > > WhatsApp delivers free-form text only within 24 hours of the customer's last message. Outside that window only an approved template goes through. That is why **Send WhatsApp Text** is an on-call tool only, while **Send WhatsApp Template** also works post-call. > [accordion] How replies are formatted > > WhatsApp has its own markup: `*bold*`, `_italic_`, `~strikethrough~`, and lists that start with `- `. It has no headings, tables or Markdown links. The WhatsApp agent template already tells the model this; keep those rules if you rewrite the prompt. ## Next steps > [card] [Connect WhatsApp Business](/documentation/inventory/tools-integrations/connect-whatsapp) > > Link your account through Meta, register a number and create templates. > [card] [Create a WhatsApp agent](/documentation/build-agents/agents/whatsapp-agents/create-an-agent) > > Attach the registered number and write a chat prompt. Related topics # Advanced Analysis Source: https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/advanced-analysis Define the typed variables Ringg AI extracts after each conversation, mark a Boolean goal, test on a past call, and read results in Logs, Analytics and webhooks. Use Advanced Analysis on an [agent](/documentation/build-agents/agents/agent-types) for facts you want to report on, filter by or send to your systems, such as `payment_promised` (a Boolean) or `promised_date` (a Date). Status, duration and transcript are already in [Logs](/documentation/monitor/logs) without it. In the dashboard: Agents (listed under **Assistants** in the sidebar) → open an agent → **Advanced Settings → Advanced Analysis**. On a [multi-prompt agent](/documentation/build-agents/agents/multi-prompt-agents/overview), open **Global Settings → Advanced Analysis** (see [Global Settings](/documentation/build-agents/agents/multi-prompt-agents/global-settings#global-settings)). ## Before you start > [card] [An agent](/documentation/build-agents/agents/create-an-agent) > > The agent whose conversations you want analysed. > [card] [A completed call](/documentation/build-agents/test-and-improve/test-an-agent) > > Optional: needed to **Test** your variables. Place a test call first. ## Add variables Adding a Boolean goal variable and testing it on a past call **1. Add a variable** Open **Advanced Analysis** and click **Add a new variable**. The **Add variables** dialog opens. * **Variable name** (required): lower-case; spaces become `_` as you type. * **Type**: one of the types below. The default is **Boolean**. * **Enum options** (required for **Enum**): type an option and press Enter or **Add**. Options are stored lower-case with `_` for spaces. * **Description** (required): "What the analysis should extract from the call." Write it as an instruction, for example "True if the customer agreed to pay by a specific date." * **Default value**: "Fallback used when nothing is extracted." * **Use as goal**: Boolean variables only (see [The goal](#the-goal)). Analysis variables are separate from the agent's [custom variables](/documentation/build-agents/customize-agent-behaviour/custom-variables), which you fill before a call. ![Add variables dialog with Variable name payment\_promised, Type Boolean, a description, Default value false and Use as goal switched on](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-advanced-analysis/add-variable.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=cb640973b532538f3ba34e0e90ec2445) The Add variables dialog **2. Add several at once (optional)** Click **Add new variable** inside the dialog for another blank form. The button at the bottom changes to **Add 2**, **Add 3** and so on. **3. Save** Click **Add**. You see "Variable added" and the variable appears in the table with its **Variable**, **Type** and **Default value**. The goal variable carries a **Goal** chip. > [!TIP] > > The table lists your variable, and **Test** is now enabled. ![Advanced analysis table listing promised\_date (Date), objection (Enum, default none), payment\_promised (Boolean, default false) with a Goal chip, and amount\_promised (Number)](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-advanced-analysis/variables.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=a0b603608a3612c8d785fa07b96e1196) Variables after saving To change a variable, click its row (the dialog is titled **Configure variable**) or use the row menu: **Edit** or **Delete**. Each change saves immediately. A change applies to conversations analysed after you save it. Calls already analysed keep their results and can't be re-analysed. On a multi-prompt agent, changes go into the draft and apply once you [publish](/documentation/build-agents/test-and-improve/drafts-and-versions#publish-changes-on-a-multi-prompt-agent). ### Default values The default is typed text, converted when the meaning is clear: | You type | Stored as | | - | - | | `null` (any case) | A real `null` | | `true` / `false` on a Boolean | A Boolean | | A whole number on an Integer, any number on a Number | A number | | Anything else | Text | ### Paste variables as JSON While adding, paste a JSON array (or one object) into a **Variable name** field, or drop a JSON file onto the dialog, to fill one form per item: ```json theme={null} [ { "variableName": "payment_promised", "type": "boolean", "description": "True if the customer agreed to pay by a specific date.", "defaultValue": false, "useAsGoal": true }, { "variableName": "promised_date", "type": "date", "description": "The date the customer promised to pay, if any." }, { "variableName": "objection", "type": "enum", "values": ["already_paid", "no_money", "dispute", "none"], "description": "The customer's main reason for not paying." } ] ``` Names are converted to `snake_case`. A type Ringg does not recognise becomes **String**, with the warning "Some types weren't recognized". Review the forms, then click **Add**. ## Variable types Each variable has one type. The name below is the value used in JSON; the label is what the **Type** menu shows. **array** `Array` A list of mixed values. **array\_of\_numbers** `Array of numbers` Several amounts or counts, such as EMIs mentioned. **array\_of\_strings** `Array of strings` Several items, such as products asked about. **boolean** `Boolean` Yes/no facts. **date** `Date` A day, such as a promised payment date. **datetime** `DateTime` A day and time, such as a callback slot. **enum** `Enum` One of a fixed set of options you list. **integer** `Integer` Whole numbers, such as number of family members. **number** `Number` Any number, such as an amount in rupees. **string** `String` Free text, such as a short summary of the complaint. ### Names you cannot use * `revenue_collected` is reserved by the platform ("This name is reserved by the platform."). * A name already in the table ("A variable with this name already exists."). * The same name twice in one dialog ("Another variable above uses this name."). ## The goal The goal is one Boolean variable that says whether the conversation succeeded, for example `payment_promised`. [Analytics](/documentation/monitor/analytics#where-the-goal-comes-from) uses it to calculate the agent's success rate. * Only a **Boolean** can be the goal. On other types the switch reads "Only boolean variables can be used as goals." * An agent has one goal at a time. Turning on **Use as goal** for another variable asks **Replace current goal?** first. * Changing the goal variable's type asks **Change variable type?** and removes it as the goal. ## Context and tool calls Below the table: * **Context** ("Include additional context for better results"): one free-text note for the whole analysis, such as what counts as a valid promise to pay. Click **Save**; you see "Context saved". * **Log tool calls** ("Include tool call logs to enhance advanced analysis."): a switch. On, the analysis also reads the [tool](/documentation/build-agents/customize-agent-behaviour/tools/overview) calls made during the conversation, such as an API lookup's result. ## Test on a past call **1. Open the test** Click **Test**. It is disabled until you have saved at least one variable. **2. Pick a call** In **Test advanced analysis**, paste a **Call ID** (copy it from the call panel in [Logs](/documentation/monitor/logs#the-call-panel)), or pick from **Or select from recent call log**. The list shows this agent's completed calls; sort it by date or duration. Picking a call from the list runs the test straight away. **3. Run it** If you pasted a Call ID, click **Run analysis**. You see the **Analysis result** next to the **Call transcript** (copy and download buttons). The link icon opens the call in [Logs](/documentation/monitor/logs). Click **Test another** to try a different one. The test is a preview: it doesn't change the call's stored results or send a webhook. > [!TIP] > > **Analysis result** shows a value for each variable that matches what was said in the transcript. ![Test advanced analysis dialog for a call with Rahul Verma: Promised Date 2026-10-08, Objection none, Payment Promised true, Amount Promised 12450, next to the call transcript](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-advanced-analysis/test-result.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=3f21e81fb98a8f9da86a9b6239f2bd66) A test result next to the transcript ## Where results appear | Where | What you see | | - | - | | [Logs](/documentation/monitor/logs) | The call's **Advanced analysis** tab, once the call has results. While it runs: "Advanced analysis is currently under process!" | | [Logs filters](/documentation/monitor/logs#custom-variables-and-advanced-analysis) | **Advanced analysis** filters calls by a variable's value. Select exactly one agent first. | | [Analytics](/documentation/monitor/analytics) | **Goal achieved** and **Cost per goal**, once you pick an agent or campaign. Boolean and Enum variables appear as [**Cohort analysis**](/documentation/monitor/analytics#cohort-analysis) charts. With one agent selected, a slice opens the matching calls in Logs. | | [Event Subscription](/documentation/build-agents/customize-agent-behaviour/event-subscription) | The **Advanced Analysis Complete** event (`client_analysis_completed`) delivers the results to your server. See the [payload](/documentation/build-agents/customize-agent-behaviour/webhooks/call-events#client-analysis-event). | | [Tools](/documentation/build-agents/customize-agent-behaviour/tools/post-call-tools#post-call-tools) | Post-call tools and condition groups can read **Advanced Analysis** fields (`client_analysis`). | | [Alerts](/documentation/monitor/alerts#alert-on-an-advanced-analysis-field) | An alert rule can fire on an Advanced Analysis field. | ## Agents with the older prompt editor Agents that saved an analysis prompt or keys before the variable table existed keep the older editor. It has a **Prompt** box ("Enter your prompt for Advanced Analysis"), a list of keys (**Define required keys for the prompt**) with a type and default value, a tool-call-logs switch, **Save** and **Test Analysis**. Its types are String, Number, Integer, Boolean, Array, Date and DateTime. It has no goal. Everyone else gets the variable table described above. ## Do this with the API Advanced Analysis variables are set up in the dashboard only; the public API has no operation for them. Read results per call from [Get Call Details](/api-reference/monitoring/call-history/get-call-details) (the `client_analysis` field, returned when you send `send_analysis=true`) or from the `client_analysis_completed` webhook ([Event Subscription](/documentation/build-agents/customize-agent-behaviour/event-subscription)). You need an [API key](/documentation/manage-account/api-key) and the call's ID. ```bash cURL theme={null} curl "https://prod-api.ringg.ai/ca/api/v0/calling/call-details?id=550e8400-e29b-41d4-a716-446655440000&send_analysis=true" \ -H "X-API-KEY: $RINGG_API_KEY" ``` ```javascript JavaScript theme={null} const params = new URLSearchParams({ id: "550e8400-e29b-41d4-a716-446655440000", send_analysis: "true", }); const response = await fetch( `https://prod-api.ringg.ai/ca/api/v0/calling/call-details?${params}`, { headers: { "X-API-KEY": process.env.RINGG_API_KEY } }, ); console.log(await response.json()); ``` ```python Python theme={null} import os import requests response = requests.get( "https://prod-api.ringg.ai/ca/api/v0/calling/call-details", headers={"X-API-KEY": os.environ["RINGG_API_KEY"]}, params={"id": "550e8400-e29b-41d4-a716-446655440000", "send_analysis": "true"}, ) print(response.json()) ``` ## Troubleshooting > [accordion] "Failed to run analysis" > > The dialog shows the server's reason, or "Failed to run analysis" with "Check the call ID and make sure you have saved at least one variable before testing." Check the call ID belongs to this agent and the call completed, then click **Retry**. > [accordion] Does it run on WhatsApp chats? > > Yes. Every agent, WhatsApp included, offers the **Advanced Analysis Complete** event and shows results in Logs. Only the **Test** dialog is limited to completed calls. > [accordion] A variable is always empty or wrong > > Rewrite its **Description** as a precise instruction, add a **Default value**, and use **Context** for definitions. Then run **Test** on a call where you know the answer. ## Next steps > [card] [Receive the results on your server](/documentation/build-agents/customize-agent-behaviour/event-subscription) > > The **Advanced Analysis Complete** event carries every field. > [card] [Test the agent](/documentation/build-agents/test-and-improve/test-an-agent) > > Place a call, then check its **Advanced analysis** tab in Logs. > [card] [See the results in Analytics](/documentation/monitor/analytics) > > Goal achieved, cost per goal and cohort charts per variable. # Agent prompt Source: https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/agent-prompt Write a Ringg AI agent's first message and prompt sections, insert variables, tools and knowledge with @, add If Condition blocks, and save or edit by API. The prompt is the set of instructions an agent follows on every call or chat, and the first message is the line it opens with. This page covers single-prompt agents; in a [multi-prompt agent](/documentation/build-agents/agents/multi-prompt-agents/overview), each Agent node has its own prompt with the same editor. In the dashboard: **Sidebar → Assistants →** open an agent **→ Prompt**. These three pages set what the agent says and hears: | Page | What you set | | - | - | | Agent prompt (this page) | The first message and the prompt sections, with variables, tools and knowledge bases inserted by `@` | | [Voice and language](/documentation/build-agents/customize-agent-behaviour/voice-and-language) | The languages it understands and speaks, the voice, and its speed | | [Custom variables](/documentation/build-agents/customize-agent-behaviour/custom-variables) | Values that change per call, filled by API, from a campaign CSV or from tools | After these, [Inventory](/documentation/inventory/knowledge-base) gives it your data and your APIs. ## Before you start > [card] [An agent](/documentation/build-agents/agents/create-an-agent) > > The template you created it from supplies the sections you edit here. ## What the Prompt section holds The section is one column of editors, top to bottom: 1. **First message**: what the agent says when the call connects. On a WhatsApp agent, it is the message sent at the start of the conversation. 2. One editor per **prompt section**, as supplied by the template you [created the agent](/documentation/build-agents/agents/create-an-agent) from. ![Agent editor with Prompt selected in the sidebar, showing the First message editor with the Interruptible switch on, followed by the Persona, Goal and Conversation flow sections with variable chips such as Callee Name, Due Amount and Due Date](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-prompt/prompt-section.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=001d073de976710ea2b1a77084db694f) The Prompt section of a single-prompt agent Templates usually provide these sections. The editor renames three of them for display: | Section title stored on the agent | Shown in the editor as | What to put there | | - | - | - | | `introduction and objective` | **Objective** | Who the agent is, who it speaks for and the goal of the call | | `task` | **Conversation Script** | The steps of the conversation, in order | | `faq guidelines` | **FAQs** | Questions callers ask, with the answers | | Any other title, such as Response Guidelines | Its own title | Tone, length, what never to say | The editor has no control to add, rename or remove a section. Collapse a section with the arrow next to its title. ### The Interruptible switch The footer of **First message** has an **Interruptible** switch, on by default. | Setting | What happens | | - | - | | On | The caller can talk over the first message and the agent stops to listen | | Off | The caller's audio is ignored until the first message finishes | The switch saves as soon as you flip it; it does not wait for **Save**. Turn it off when the first message carries something the caller must hear in full, such as a recording disclosure. ## Insert variables, tools and knowledge with @ Type `@` in any editor (the footer reminds you: "Type @ to add variables"). A menu opens, grouped by kind. Keep typing to filter it, use the arrow keys to move, and press Enter to insert. Each item becomes a coloured chip in the text. ![Mention menu opened by typing @, grouped into Custom Variables (Callee Name, Mobile Number, Due Amount, Due Date), Pre-call API settings (Get Loan Account) and On-call API settings (Check Payment Status), with Knowledge Bases below](https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-prompt/mention-menu.webp?fit=max\&auto=format\&n=zhzhS2waLZvF8qXk\&q=85\&s=1fd6d20e23a86985020a9b8a0273fba4) The @ menu | Menu group | What it inserts | Text form | | - | - | - | | **Custom Variables** | A per-call value, such as the caller's name ([Variables](/documentation/build-agents/customize-agent-behaviour/custom-variables)) | `@{{callee_name}}` | | **Pre-Call API Settings** | The output of a [pre-call tool](/documentation/build-agents/customize-agent-behaviour/tools/overview#the-three-phases), or one of its response keys | `@((get_customer))`, `@((get_customer.plan))` | | **On-Call API Settings** | A tool the agent can call during the conversation, or one of its response keys ([use on-call tools](/documentation/build-agents/customize-agent-behaviour/tools/overview#use-on-call-tools-in-the-prompt)) | `@\|\|book_slot\|\|`, `@\|\|book_slot.slot_time\|\|` | | **Knowledge Bases** | A knowledge base attached to the agent | `@` + the knowledge base name | | **Chat Components** | A saved, enabled [chat component](/documentation/deploy/web-and-apps/web-widget/components) the widget shows at that point of the conversation | `@[[family_member_details_form]]` | | **WhatsApp Templates** | A template the WhatsApp agent can send mid-chat ([send a template](/documentation/build-agents/agents/whatsapp-agents/create-an-agent#send-a-template-during-a-chat)) | `@\|\|