Prerequisites
- An Agentic Trust account with a project created in the dashboard
- Your API key (
lum_pk_...) from the project settings page
Embed the widget
1
Add the script tag
Include the widget script in your HTML:
2
Initialize the widget
Call The widget bubble appears in the bottom-right corner of your page.
initAsync with your project credentials:3
Test it out
Click the widget bubble and send a message. If you’ve added knowledge sources in the dashboard, the agent will answer from your content.
Send a message via the API
You can also interact with the agent programmatically.1
Create a conversation
conversationId from the response.2
Stream a response
What’s next
Knowledge Base
Upload documents and crawl websites so the agent answers from your content.
Custom Actions
Let the agent call your APIs to take actions on behalf of users.
Widget Configuration
Customize the widget appearance, position, and color scheme.
Identity Verification
Secure your agent with HMAC or JWT identity verification.