Skip to main content

1. Install and initialize

Add the script tag, call Zephlo.initialize() with your API key and agent ID, and drop in a <zephlo-fab> element where the floating button should appear.
Or install from npm:
The widget renders, fetches its settings, and opens a WebSocket to your agent. Prefer an embedded chat instead of a floating button? Use <zephlo-chat>. Full integration docs →

2. Register a tool

Give the agent an action it can take on your site with registerTool().
Now when a visitor asks “take me to the pricing page”, the agent calls your function. Full tools docs →

3. Add a form tool

Add zephlo-tool-name and zephlo-tool-description to any existing form — no JavaScript needed.
The widget detects the form automatically and registers it as a tool the agent can fill out. Full form docs →

4. Send page context

Tell the agent where the visitor is so it can give relevant answers.
Now if a visitor asks “what’s included?”, the agent already knows they’re looking at the Pro plan. Full context docs →

Next steps

Widget integration

Script tag vs npm SDK, configuration, and customization.

Register tools

Full tool API reference with more examples.

Form tools

Form attributes, auto-submit, and dynamic detection.

Page context

Context API, auto page details, and SPA examples.

Proactive triggers

Have the agent reach out to visitors first, with cooldowns.

Theming

Control colors and light/dark mode from the SDK.