Configure a widget
1
Open widgets
Go to Workflow widgets, use Create widget on an agent card, or add a Chat widget under the agent’s Entry points tab.
2
Create or edit
Set a friendly name, which agent answers, active flag, on-screen position, button size, colors, header text, optional quick-reply chips (from the agent’s starter prompts), whether file upload is allowed, and whether threads persist (plus retention/expiry when shown).
3
Copy embed details
After save, the UI provides embed instructions and a widget id for the public URL.
Identify logged-in visitors
Anonymous visitors get a widget external user automatically. To prove a host-site login:- Generate HMAC and/or JWT secrets on the project End users tab — Projects and API keys.
- On the agent, open Identity → End-user identity and enable Host HMAC, Host JWT, Email OTP, or other methods as needed.
- Your server must stamp
data-user-id+data-user-hash, ordata-user-token, on the embed script (sent via postMessage — not in the iframe URL). The dashboard widget UI shows a short identity snippet hint.
Public embed URL
Pattern:flowra.dev (and any asset hosts the snippet references) for frame/script sources.
The page uses minimal chrome and loads branding and persistence settings from the widget config. Treat the widget id like a capability: do not post it publicly if the bound workflow can access private data or powerful tools.
Widget visitors appear as external users with source Widget. Use the End user switcher to inspect their threads and connections.
Security hygiene
- Use a dedicated agent for public embeds — limit tools and knowledge under Actions, and harden Behavior (guardrails, usage caps) when needed.
- Prefer separate agents for internal automations vs customer-facing chat.
- Test on a staging page before production.