Skip to main content

Erghi User Guide

Erghi — Embed AI-powered live chat into your product and manage every conversation in real time.

Everything in this guide reflects the current live product (verified 2026-08-31), not an aspirational roadmap. Where something isn't available yet, it's called out explicitly rather than glossed over.

Table of Contents


What Is Erghi?

Erghi is a multi-tenant B2B live-chat SaaS platform. It lets your business:

  • Embed a fully customisable chat widget into any web page
  • Route visitor conversations to human agents or an AI assistant
  • Manage all conversations in a single admin portal, in English or Arabic (full RTL)
  • Integrate with existing workflows via SDKs in 7 languages

Erghi is designed for workspace owners (businesses that install the widget) and their visitors (the people who chat through it).


Core Concepts

ConceptDescription
WorkspaceYour business's isolated tenant inside Erghi — everything below belongs to exactly one workspace
WidgetAn embeddable chat component, configured per site or page context
ConversationA single chat session between a visitor and your team or AI
AgentA human support representative assigned to conversations
VisitorAn anonymous or identified end user who starts a chat through the widget

Getting Started — From Sign-Up to a Live Widget

This is the real, current flow — four steps, no step skipped or renamed from what you'll actually see.

Getting started flow: create workspace, sign in, choose a plan, embed the widget

1. Create your workspace

Click Start free on erghi.ai, or go directly to the registration page. You'll provide:

  • Workspace name
  • Your work email
  • A password

No card is required at this step — the Free plan is available immediately.

2. Sign in

After registering, sign in. Your first login lands you on Billing & Plans, not the dashboard — this is deliberate, so you pick a plan (or explicitly stay on Free) before anything else.

3. Choose a plan

  • Staying on Free — do nothing; the Free plan is your default and you can use the workspace immediately.
  • Upgrading — clicking Upgrade to Starter or Upgrade to Growth opens a real Stripe Checkout page for that plan's price. Complete payment there; you're returned to the admin portal once it succeeds.
  • Enterprise — has no self-serve checkout. Use the "Contact sales" form on the same page.

See Billing & Plans below for what each plan actually includes.

4. Embed the widget on your site

From the sidebar, go to Widgets → your widget → Embed to get your real, workspace-specific snippet. It looks like this (see Embedding the Chat Widget for every option):

<script
src="https://chat.staging.erghi.ai/widget.js"
data-widget-id="your-widget-id"
async
></script>

Paste it into your site's HTML just before </body>. The chat bubble appears immediately — no build step, no npm install required for a plain HTML site.

:::note Why "staging" in the URL? The platform is mid soft-launch: staging. is currently the only live prefix for every Erghi subdomain, not a separate sandbox — this is the real, production widget host today. It moves to chat.erghi.ai once the prefix is dropped platform-wide; your embed snippet will be updated automatically from your widget settings when that happens, so nothing you do now needs to change later. :::

5. Invite your team

Go to Users → Invite User, enter their email, and assign a role (Agent or Admin — see roles below). They receive an invitation email to join your workspace.


Admin Portal Reference

Dashboard

The admin dashboard (/dashboard) shows workspace-wide stats: total and active conversations, total and today's messages, average first-response time, and trend deltas versus the prior period.

Managing Users

Go to Users to manage everyone in your workspace.

RoleCapabilities
OwnerEverything — the account creator; every workspace has exactly one
AdminManage widgets, users, billing, integrations, AI settings, conversations
AgentHandle and close conversations; read-only on everything else

Managing Widgets

Go to Widgets to view and manage every chat widget in your workspace. Per-widget settings: name, welcome message, AI-assistant toggle, theme colour, auto-assign to available agents, and an offline message shown when no one's online.

API Integrations

Go to API Integrations to connect your own APIs so the AI assistant can call them as tools during a conversation (upload an OpenAPI spec, save credentials, send test requests). This surface is permission-gated to workspace admins/owners.

Conversations View

Go to Conversations to monitor everything, live and historical. Filter by status (open/closed/pending) or search by visitor identifier. Per-conversation actions: assign to an agent, close, or read the full transcript.

Admin Billing

Go to Billing to manage your subscription — see Billing & Plans.


Embedding the Chat Widget

The widget reads its configuration only from data-* attributes on its own <script> tag — there is no separate global config object to set up.

<script
src="https://chat.staging.erghi.ai/widget.js"
data-widget-id="your-widget-id"
data-primary-color="#6366f1"
data-greeting="How can we help?"
async
></script>
AttributeRequiredDescription
data-widget-idYesYour widget's unique ID, from Widgets → your widget → Embed
data-primary-colorNoHex colour for the bubble/header, overrides the widget's saved theme
data-greetingNoFirst message shown when a visitor opens the chat

Controlling the widget from your own JavaScript

Once loaded, the widget exposes itself on window.ErghiWidget:

MethodDescription
open()Programmatically open the chat window
close()Programmatically close the chat window
toggle()Toggle open/closed
authenticate(jwtToken)Associate an authenticated (logged-in) visitor with the conversation
identify(attributes)Pass custom visitor attributes for routing and AI context
setContext(attributes, merge?)Update visitor context, optionally merging with what's already set
getContext()Read the current visitor context
destroy()Tear down the widget instance

Framework-specific SDKs

If you're building a custom chat UI instead of using the pre-built widget bubble, use one of the client SDKs below — see SDK Quick-Start.


Getting Started — End Users

Visitors reach Erghi two ways:

  1. The embedded widget on your website — no account needed
  2. The Erghi user portal — for people with an actual account in your workspace

Using the embedded widget

Click the chat bubble, type a message, press Enter. An AI assistant or a live agent responds. No account required.

Using the user portal

Navigate to the portal URL your workspace admin gave you, log in, and use the Chat page to see conversation history and start new chats.


Billing & Plans

Available plans

PlanPrice/moAgentsWidgetsConversations/moAI Replies/moHistory
Free$011501007 days
Starter$39331,0002,00030 days
Growth$8910105,0008,00090 days
EnterpriseCustomUnlimitedUnlimitedUnlimitedUnlimited365 days

Annual billing is available on every paid plan at a discount, selectable on the Billing & Plans page before checkout.

Adding extra agent seats

Beyond a plan's included agent count, extra seats can be added from Billing → Manage seats ($15/mo on Starter, $12/mo on Growth) — billed on top of your plan through the same Stripe subscription.

Payment methods

Erghi currently accepts credit/debit card via Stripe. Additional regional payment methods are planned but not yet available — if a payment method other than card is shown anywhere in the product, it is not yet live; use card for now.

Viewing invoices

Go to Billing → Invoices for a downloadable history of all charges.


SDK Quick-Start

All Erghi client SDKs share the same underlying resource-oriented API (client.auth, client.chat, client.workspace, ...) for building a fully custom integration. If you just want the pre-built chat bubble, use the plain HTML embed instead — none of these SDKs ship a drop-in <ChatWidget/> component.

LanguagePackageRegistryStatus
JavaScript / TypeScript@erghi-ai/sdknpm✅ Published
React@erghi-ai/reactnpm✅ Published
Angular@erghi-ai/angularnpm🚧 Not yet published — see the Angular SDK source to build from source in the meantime
Pythonerghi-sdkPyPI✅ Published
.NETErghi.SDKNuGet✅ Published
Fluttererghi_sdkpub.dev✅ Published
SwiftErghiSDKSPM✅ Published

Pick your language once — every code block below switches together.

npm install @erghi-ai/sdk
import ErghiClient from '@erghi-ai/sdk';

const client = new ErghiClient({ apiUrl: 'https://api.staging.erghi.ai', apiKey: 'your-api-key' });
await client.auth.login({ email: 'user@example.com', password: 'password' });

FAQ

Can I have multiple widgets for different parts of my site? Yes. Create a widget per context (homepage, pricing, support) and embed each with its own data-widget-id.

Does Erghi support Arabic? Yes — the admin portal and the widget both fully support Arabic with right-to-left layout, and the AI assistant auto-detects and replies in the visitor's language.

Does Erghi support file attachments? Attachment support depends on your plan.

How do I connect my own AI model? Enterprise plans support custom LLM connections. Contact sales for setup.

What happens when no agents are online? The widget shows your configured offline message and queues the conversation. The AI assistant can still respond if enabled on that widget.

Is my data encrypted? All traffic is encrypted in transit via TLS, and message content is encrypted at rest. Contact sales for compliance-specific requirements.