Web Chat Setup
Add an AI-powered chat widget to your website to engage visitors and capture leads.
Accessing Web Chat
- Go to Integrations in the sidebar
- Click Website — this opens the Web Integrations page
- Click New Integration
Creating a Web Chat Integration
The creation form shows a Live Preview beside it, so you can see exactly how the widget will look as you configure it.
Integration Name
Give your integration an internal name. This is for your reference only — useful if you have multiple web chats.
Examples:
- "Main Website Chat"
- "Product Pages Chat"
- "Support Center Widget"
Domain
Enter the domain where this chat will appear (e.g., yoursite.com).
The web chat will only work on the domain you specify. If someone copies your code snippet and puts it on a different website, it will fail to load. Your snippet is safe to use.
Primary Color
Select a color that matches your brand. It's used for the launcher, chat header, and customer message bubbles.
The form checks the contrast of your color as you pick it: white text is overlaid on this color, so the form blocks colors that are too light and asks you to pick a darker shade.
Chat Style
Choose how the widget looks:
| Style | Appearance |
|---|---|
| Classic | Traditional round chat bubble launcher |
| Modern | Pill-shaped launcher |
Launcher Icon
Choose what appears on the chat launcher:
- Default — the standard chat icon
- Agent Photo — your default agent's photo (you must pick a Default Agent first)
Starter Messages
Quick options shown above the input before a chat starts — clicking one sends it. You can define them per language (English and Arabic), with up to 6 messages per language and a maximum of 150 characters each.
Example: "What are your business hours?"
Default Agent
Pick which AI agent handles chats from this integration. You can change this anytime after creation.
Initial Form
The Initial Form section controls what to collect from visitors before they start chatting. Visitors see it as a short "Before we start" form.
- Enable Form — turn the form on or off
- Collect Name
- Collect Email
- Collect Phone
We recommend collecting at least Name to:
- Protect against bots
- Give your AI agent more context
- Allow follow-up outside the chat
Email and phone numbers are not verified — visitors may enter incorrect information. This is intentional to reduce friction and make it easier for visitors to start chatting.
Create Integration
Click Create Integration to save. You'll be returned to the Web Integrations page where you can see your new integration.
Installing the Widget
After creating your integration:
- Go back to Integrations > Website
- Find your newly created web chat
- Click the
</>icon to open the Install Orki Webchat dialog
The dialog has three tabs, one per installation method:
HTML
The HTML tab shows a ready-made loader snippet, already filled in with your Tenant ID, Integration ID, and the correct script URL for your environment. Copy the snippet from the dialog — don't hand-write it — and paste it just before the closing </body> tag on every page where the chat should appear.
Next.js / React
The Next.js / React tab uses the official npm package:
pnpm add @orki/webchat-react
Drop the component in your root layout (the dialog shows this snippet with your IDs already filled in):
import { OrkiWebChat } from '@orki/webchat-react';
export default function RootLayout({ children }) {
return (
<>
{children}
<OrkiWebChat
tenantId="YOUR_TENANT_ID"
integrationId="YOUR_INTEGRATION_ID"
scriptUrl="SCRIPT_URL_FROM_DIALOG"
/>
</>
);
}
For programmatic control (opening the chat from your own button), wrap your app in OrkiWebChatProvider and use the useOrkiWebChat() hook — the dialog includes a copyable example.
WordPress
The WordPress tab offers a downloadable plugin — no theme edits needed:
- Click Download .zip in the dialog
- In WordPress admin, go to Plugins → Add New → Upload Plugin
- Upload the ZIP, click Install Now, then Activate
- Go to Settings → Orki Webchat and paste your Tenant ID, Integration ID, and script URL (all shown in the dialog)
Other Platforms
For any platform that lets you inject custom HTML, use the snippet from the HTML tab:
| Platform | Where to Add Code |
|---|---|
| Shopify | Themes > Edit Code > theme.liquid before </body> |
| Wix | Settings > Custom Code > Body End |
| Squarespace | Settings > Advanced > Code Injection > Footer |
| Webflow | Project Settings > Custom Code > Footer |
Widget Controls
Once installed, the widget gives visitors:
- An enlarge button to expand the chat window
- An unread badge on the launcher when new messages arrive while closed
- Remembered open state — the chat stays open/closed across page navigations
- Full RTL support for Arabic
Managing Your Integration
Integration Controls
Each web chat integration has these controls:
| Icon/Control | Action |
|---|---|
</> | Open the install dialog (code snippet, npm package, WordPress plugin) |
| Pencil icon | Edit settings |
| Active toggle | Enable/disable (hides from website when off) |
| Trash icon | Delete the integration |
Default Agent
Use the Default Agent setting to select which AI agent responds to messages.
You can change the assigned agent anytime.
Editing Settings
Click the pencil icon to edit any of the settings above — name, domain, color, chat style, launcher icon, starter messages, default agent, and the initial form.
Changes apply immediately — no need to update the code snippet on your website.
Disabling vs Deleting
Disable (recommended): Toggle off to hide the chat from your website. The code snippet can stay on your site — it just won't load.
Delete: Removes the integration entirely. Only do this if you're sure you won't need it again. If you need to change settings (like domain), editing is better than deleting and recreating.
Why Multiple Web Chats?
Most customers only need one web chat. But multiple integrations are useful for:
Different Agents on Different Pages
You might want:
- A sales agent on product pages
- A support agent on help/FAQ pages
- A general agent on the homepage
Create separate web chats, assign different agents, and place each snippet on the relevant pages.
Different Websites
If you run multiple websites, create a web chat for each domain.
A/B Testing
Test different colors, styles, or form configurations to see what converts better.
Integration Limits
The number of web chat integrations you can create depends on your plan. Check your limits in Settings > Billing.
Next Steps
- Chats - See incoming web chat messages
- AI Agents - Configure your agent's behavior
- Handover Settings - Set up human escalation rules