Documentation

Deploy Seva in an afternoon

Everything you need to put a Seva agent on your website — from creating the agent to installing the widget on WordPress, WooCommerce, or any custom stack.

Quick start

1

Create your agent

Go to Get started, pick your domain (retail, fintech, health, telco, or legal), name your agent, and choose your platform. You'll receive a Tenant ID, an API key, and a ready-to-paste embed snippet.

2

Add your knowledge

Describe your business in the store context, and ingest your catalog or FAQs from the agent's page in the portal. Seva only answers from what you give it — no guessing.

3

Paste the snippet

Copy the embed snippet into your website's HTML before the closing </body> tag. The widget appears on every page, branded in your colours.

<!-- Your Store — Seva Widget -->
<div id="seva-widget"></div>
<link rel="stylesheet" href="https://api.prakryt.in/static/widget.css">
<script>
  window.SevaConfig = {
    apiBase:   "https://api.prakryt.in/api/v1",
    tenantId:  "YOUR_TENANT_ID",
    storeName: "Your Store",
  }
</script>
<script src="https://api.prakryt.in/static/widget.js"></script>

Install on WordPress

Two ways to add the snippet — no coding required for either:

A

With a plugin (recommended)

Install the free WPCodeplugin (Plugins → Add New → search "WPCode"). Then go to Code Snippets → Header & Footer, paste the Seva snippet into the Footer box, and save. This survives theme updates.

B

Via the theme editor

Go to Appearance → Theme File Editor → footer.php, paste the snippet just before </body>, and update the file.

A dedicated Prakryt WordPress plugin — install, paste your Tenant ID, done — is coming soon.

Connect WooCommerce

Connecting WooCommerce lets Seva answer live order-status, stock, and coupon queries from your actual store data.

1

Create REST API keys

In WordPress admin: WooCommerce → Settings → Advanced → REST API → Add key. Set permissions to Read, and copy the Consumer key and Consumer secret.

2

Add them to your agent

In the Prakryt portal, open your agent and paste the store URL, Consumer key, and Consumer secret. Seva syncs your product catalog automatically and re-indexes on demand.

Custom REST API

Not on WordPress? Any system with a REST API can power Seva — a clinic's booking system, an NBFC's CRM, a case-management tool. You define the endpoints Seva may call (order lookup, status check, availability) and the exact fields it can read. Seva never queries beyond the boundaries you set.

Configure endpoints from your agent's page in the portal, or try the live demo first to see how tool-calling works.

Widget configuration

All options for window.SevaConfig:

FieldRequiredDescription
apiBaseYesPrakryt API base URL — provided in your embed snippet
tenantIdYesYour agent’s unique ID from the portal
storeNameYesBusiness name shown in the chat header
brandColorNoHex colour for the widget button and accents
agentNameNoDisplay name of the assistant (default: Seva Assistant)

Ready to deploy your agent?

Get started free