---
name: ringg
description: Use when building AI agents that make and answer phone calls,
  deploy them via campaigns or API, integrate with external systems through
  tools and webhooks, monitor call quality and analytics, or embed voice/chat
  widgets on websites and WhatsApp.
metadata:
  mintlify-proj: ringg
  version: "1.0"
---

# Ringg AI Skill

## Product summary

Ringg AI is a platform for building and deploying AI agents that conduct phone calls, answer inbound calls, chat on WhatsApp, and talk to visitors through web widgets. Agents are built in the dashboard or via API, configured with prompts, voices, variables, knowledge bases, and tools, then deployed through campaigns (CSV lists), individual API calls, or workflows (multi-step journeys). The core workflow: create an agent → attach a number or deploy via API → run calls through campaigns or workflows → monitor in Logs and Analytics → read results via webhooks or API.

**Key files and endpoints:**
- Dashboard: https://www.ringg.ai/dashboard
- API base: `https://prod-api.ringg.ai/ca/api/v0`
- Authentication: `X-API-KEY` header (workspace API key)
- Core routes: `GET /agent/all`, `POST /calling/outbound/individual`, `POST /campaign/save`, `GET /calling/history`, `GET /calling/call-details`
- Dashboard labels agents as "Assistants" in the sidebar

## When to use

Reach for this skill when:
- **Building agents**: Creating outbound, inbound, outbound-inbound, webcall, or WhatsApp agents with single-prompt or multi-prompt architectures
- **Deploying at scale**: Running campaigns from CSV lists with calling windows, retries, and number pools
- **Integrating systems**: Attaching tools (API, integration, function, system tools) to agents for pre-call lookups, on-call actions, or post-call webhooks
- **Monitoring quality**: Reading call transcripts, recordings, analysis, and metrics in Logs and Analytics
- **Embedding on web**: Installing the web widget on sites or apps for visitor calls/chats
- **Triggering from code**: Using the REST API to place individual calls, start campaigns, or fetch results
- **Multi-step journeys**: Building workflows that chain calls, messages, waits, and API actions per contact
- **Testing before live**: Using test calls, drafts, versions, and A/B splits to validate agent behavior

## Quick reference

### Agent types by channel and build style

| Channel | Single-prompt | Multi-prompt | Deploy via |
|---------|---------------|--------------|-----------|
| **Outbound** | ✓ | ✓ | Campaign, API call, workflow |
| **Inbound** | ✓ | ✓ | Attach number to agent |
| **Outbound-Inbound** | ✓ | ✓ | Campaign/API + attached number |
| **Webcall** | ✓ | ✓ | Web widget embed |
| **WhatsApp** | ✓ | ✗ | WhatsApp Business number |

### Essential API endpoints

| Task | Endpoint | Method |
|------|----------|--------|
| List agents | `GET /agent/all` | GET |
| Create agent | `POST /public/agent` | POST |
| Get agent voices | `GET /agent/voices?language=en-IN` | GET |
| List workspace numbers | `GET /workspace/numbers` | GET |
| Place one call | `POST /calling/outbound/individual` | POST |
| Get call details | `GET /calling/call-details?id={call_id}` | GET |
| Upload campaign CSV | `POST /campaign/save` | POST |
| Start campaign | `POST /campaign/start` | POST |
| Get call history | `GET /calling/history` | GET |

### Custom variables

- **Permanent**: `callee_name`, `mobile_number` (always present)
- **Custom**: Add in agent editor → Custom Variables; use in prompt as `@{{variable_name}}`
- **Fill from**: Test dialog fields, campaign CSV columns, API `custom_args_values`, pre-call tools
- **Naming**: snake_case, lowercase, no spaces (e.g., `emi_amount`, `due_date`)

### Tools phases

| Phase | When | Use for |
|-------|------|---------|
| **Pre-call** | Before call connects | CRM lookup, fetch customer data |
| **On-call** | During conversation | Check availability, create ticket, transfer, collect input |
| **Post-call** | After call ends | Push results to CRM, send email, update database |

### Webhook events (call)

- `call_started`: Call begins
- `call_ringing`: Phone ringing
- `call_ongoing`: Call connected
- `call_completed`: Call ended
- `recording_completed`: Recording ready
- `platform_analysis_completed`: Ringg's analysis done
- `client_analysis_completed`: Your Advanced Analysis done
- `all_processing_completed`: Everything finished (use this for full data)

## Decision guidance

### When to use single-prompt vs multi-prompt agent

| Scenario | Use |
|----------|-----|
| Simple reminder, qualification, or support call | Single-prompt: faster to build and iterate |
| Fixed steps: identity check → keypad input → API lookup → branch | Multi-prompt: enforces order, handles branching |
| One conversation per contact | Single-prompt |
| Multiple conversations per contact (call → wait → follow-up) | Workflow with agents inside |

### When to use campaign vs API call vs workflow

| Scenario | Use |
|----------|-----|
| Call 1,000 people from a CSV list on a schedule | Campaign (dashboard or API) |
| Call one person now from your backend | API: `POST /calling/outbound/individual` |
| Call, then follow up based on result (call again, message, wait) | Workflow campaign |
| One-off test or demo | Test assistant in dashboard |

### When to use knowledge base vs tools vs prompt

| Data type | Use |
|-----------|-----|
| Static FAQs, policies, price lists | Knowledge base (files/URLs) |
| Per-customer data (orders, account balance) | Pre-call tool (API lookup) |
| Facts the agent needs on every call | Prompt (keep short) |
| Real-time data (availability, inventory) | On-call tool (API during conversation) |

### When to use webhooks vs polling

| Scenario | Use |
|----------|-----|
| Real-time updates to your system | Webhooks (Event Subscription) |
| Batch processing after campaign ends | Polling `GET /calling/history` |
| One-off test or debugging | Polling `GET /calling/call-details` |

## Workflow

### Build and deploy an agent (typical path)

1. **Create the agent**
   - Dashboard: Assistants → Create agent → pick channel (Outbound, Inbound, Webcall, WhatsApp)
   - Pick single-prompt or multi-prompt
   - Fill in prompt sections: Objective, Response Guidelines, Conversation Script, FAQs
   - Set voice, language, first message

2. **Add intelligence**
   - Attach knowledge base (Inventory → Knowledge base → create or pick existing)
   - Add custom variables (Custom Variables panel) for per-call values
   - Add tools (Tools panel): pre-call (CRM lookup), on-call (transfer, collect input), post-call (push to CRM)
   - Set Advanced Analysis fields to extract from every call

3. **Configure deployment**
   - For outbound: set calling window, timezone, voicemail handling (Call settings)
   - For inbound: attach a number (Attach Number)
   - For webcall: set Allowed clients, appearance, copy embed snippet
   - For WhatsApp: connect WhatsApp Business number

4. **Test before live**
   - Test assistant: place a real test call with sample variables
   - Read result in Logs: transcript, recording, analysis
   - Iterate prompt or tools based on result
   - Create versions for A/B testing if needed

5. **Deploy**
   - **Campaign**: Upload CSV, map variables to columns, set calling windows and retries, launch
   - **API**: `POST /calling/outbound/individual` with agent_id, from_number_id, mobile_number, custom_args_values
   - **Workflow**: Build multi-step journey, publish, launch as workflow campaign
   - **Web widget**: Copy snippet, paste before `</body>`, test on staging

6. **Monitor and improve**
   - Logs: read transcripts, recordings, analysis per call
   - Analytics: volume, connectivity, cost trends over time
   - Evals: score calls for quality
   - Alerts: notify on metric spikes
   - Webhooks: push results to your system in real time

### Place a call via API (5 steps)

1. Get API key: Dashboard → Settings → API key → Generate
2. List agents: `GET /agent/all`, pick `agent_id`
3. List numbers: `GET /workspace/numbers`, pick `from_number_id` (not `is_test_number`)
4. Place call: `POST /calling/outbound/individual` with agent_id, from_number_id, mobile_number (with country code), custom_args_values
5. Read result: `GET /calling/call-details?id={call_id}&send_analysis=true` (poll until `call_status` is completed/failed/error)

### Upload and run a campaign

1. Prepare CSV: columns for `callee_name`, `mobile_number`, and each custom variable
2. Dashboard: Monitor → Campaigns → Create campaign
3. Upload CSV, map variables to columns, set country code
4. Pick caller number(s) or number pool
5. Set timezone, start/end time, calling windows, retry count, cooldown
6. Click Create campaign
7. Monitor in Logs, read results in Analytics

## Common gotchas

- **API key in code**: Store in environment variable or secret manager, never in source. Rotate if leaked.
- **Test numbers don't work from API**: Use `GET /workspace/numbers` and pick one with `is_test_number: false`. Dashboard test calls use Ringg's shared test numbers.
- **Calling window closed**: Call stays `registered` if agent's calling window is closed. Check agent's Call settings or send `call_config.call_time` with the API call.
- **Missing custom_args_values**: If agent has custom variables, API call fails with `400` unless you send every variable in `custom_args_values`. Include `callee_name` and `mobile_number` too.
- **Variable not filled**: Check Logs → call's Custom variables panel. Ensure CSV column name or API key matches variable name exactly (case-sensitive).
- **Webhook not firing**: Endpoint must return `2xx` within 10 seconds. Deduplicate on `call_id` + `event_type`. Ringg retries on 5xx or timeout, backing off from 1s to 60s.
- **Campaign balance insufficient**: Add balance before uploading CSV, or check balance mid-campaign with `POST /campaign/check-balance/{bulk_list_id}`.
- **Widget won't connect**: Origin not in Allowed clients. Add exact origin (e.g., `https://www.example.com`), including staging sites.
- **Multi-prompt agent won't publish**: Check for unconnected nodes or missing required fields. Click Review issues to see errors.
- **Knowledge base not used**: Mention it in the prompt or tool parameters. Attach it to the agent (Attach a knowledge base).
- **Tool output too long**: On-call tools: keep response short (jq transform to select only needed keys). Long payloads slow the model.
- **Prompt mentions variable that doesn't exist**: Red wavy underline. Add the variable or fix the spelling.

## Verification checklist

Before submitting work:

- [ ] Agent created and saved (or published if multi-prompt)
- [ ] Prompt sections filled: Objective, Response Guidelines, Conversation Script, FAQs (if needed)
- [ ] Voice and language set and tested (voice supports the language)
- [ ] Custom variables added and used in prompt with `@{{name}}` syntax
- [ ] Knowledge base attached if agent needs to reference external data
- [ ] Tools added and tested (pre-call, on-call, post-call as needed)
- [ ] Test call placed and transcript reviewed (Logs)
- [ ] For campaigns: CSV uploaded, variables mapped, calling windows set, balance sufficient
- [ ] For API: agent_id, from_number_id, mobile_number (with country code), custom_args_values all provided
- [ ] For webhooks: endpoint returns 2xx within 10 seconds, deduplication logic in place
- [ ] For web widget: Allowed clients includes all domains, snippet copied and pasted before `</body>`, CDN version pinned (not `latest`)
- [ ] Calling window set for agent's market timezone
- [ ] No unsaved changes (dashboard shows Save/Publish button, not Discard)

## Resources

**Comprehensive navigation:** https://docs.ringg.ai/llms.txt

**Critical pages:**
- [How Ringg works](https://docs.ringg.ai/get-started/how-ringg-works) — core objects and call lifecycle
- [API quickstart](https://docs.ringg.ai/api-reference/introduction/quickstart) — place your first call in 10 minutes
- [Agent types](https://docs.ringg.ai/documentation/build-agents/agents/agent-types) — choose channel and build style

---

> For additional documentation and navigation, see: https://docs.ringg.ai/llms.txt