Skip to main content
Integrate Agentic OS Voice AI directly into your website or web application. Whether you want to add an in-browser voice calling widget, a click-to-call instant callback button, or automated WhatsApp/SMS follow-ups, you can test the APIs in our interactive playground and integrate them with a few lines of code.

Interactive Playground

Test live API requests directly in your browser using your API key.

API Keys Feature Guide

Generate and manage your secure aok_... API keys.

1. Get Your API Key

Every API call from your backend or development playground requires a secure API Key.
1

Sign in to your Dashboard

Go to the platform console (e.g. http://localhost:8080 locally, or your deployed Dev / UAT / Prod URL) and log in to your business organization.
2

Generate a new API Key

Navigate to API Keys in the sidebar, click Create API Key, and name it (e.g. Website Production).
3

Copy the key

Copy the generated key starting with aok_.... Store it securely in your backend environment variables (AGENTIC_OS_API_KEY).
Security Best Practice: Never expose your aok_... API key in client-side HTML or public JavaScript files. Always call Agentic OS APIs from your secure backend server or serverless functions (Node.js, Python, Next.js API routes, etc.).

2. Test in the Interactive Playground

Before writing code, test every endpoint in real-time on our documentation playground:
  1. Open any API Reference page, such as Make Phone Call or Start Web Call.
  2. Look at the Interactive Playground panel on the right.
  3. Paste your aok_... key into the Authorization input field.
  4. Select the target server (e.g., https://api.agentic-os.com/api/v1 for production or http://localhost:8787/api/v1 for local gateway testing).
  5. Fill in the parameters (e.g. agentId, toNumber) and click Send to see live responses from your tenant!

3. Integration Scenario A: Click-to-Call Button

Allow visitors on your website to enter their phone number and receive an immediate phone call from your AI voice agent.

Backend Implementation (Node.js / Express)

Create an endpoint on your server that receives the customer’s phone number and calls Agentic OS:
server.js

Frontend Widget (HTML & JavaScript)

Embed this form anywhere on your website:
index.html

4. Integration Scenario B: In-Browser Live Voice Call (Web Call)

Let website visitors talk directly with your AI agent right from their browser using WebRTC — no phone number required.

1. Request Session from Backend

Your backend requests a session token from Agentic OS:

5. Integration Scenario C: Automated WhatsApp & SMS Lead Nurturing

Trigger automated WhatsApp messages or SMS follow-ups when users complete actions on your site (e.g., booked a demo, submitted a form):
Python (FastAPI / Flask)

6. Receiving Real-Time Webhooks

When a call finishes, Agentic OS can push the full recording URL, audio transcript, duration, sentiment analysis, and token costs directly to your server.

Configuring Webhooks:

  1. Go to API Keys in your Agentic OS dashboard.
  2. Edit your API key and set the Webhook URL (e.g. https://yourdomain.com/api/agentic-webhook).
  3. Handle the incoming POST payload on your server:

Summary Checklist for Go-Live

  • Create an API key (aok_...) in API Keys.
  • Connect your carrier (Plivo / Twilio) in Integrations.
  • Configure your AI Agent in Agent Studio.
  • Test requests in the API Playground.
  • Embed the backend API calls in your website/application.
  • Register your webhook endpoint to receive call transcripts and recordings.