Recipe: Chatbot with Your Data
Goal: Website visitors ask questions; the automation retrieves relevant context and replies in the chat widget.
Prerequisites
Section titled “Prerequisites”- An LLM integration connected (OpenAI, Anthropic, Google AI, …)
- Content available via Vector search and/or Database lookups
Build the flow
Section titled “Build the flow”- Create a GENERIC automation.
- Add a Chat trigger.
- On General, copy the embed script for your site.
- On Style, set title, welcome message, colours, and button position (styles apply without re-copying the script).
- Add a Vector
SEARCHtool/action (or Database read) grounded in your knowledge. - Add an AI Agent:
- Model tab → select LLM connection
- System prompt → role and citation rules
- User prompt → chat message variable
- Attach Vector (and other) tools
- Add Reply Chat; select the agent’s answer variable.
- Save and enable.
Embed and test
Section titled “Embed and test”- Paste the script into a test HTML page.
- Ask a question that should hit your data.
- Confirm an execution under Executions.
- Tune prompts,
topK, and confidence until answers are reliable.
Variations
Section titled “Variations”- Application trigger instead of Chat for in-product assistants.
- HTTP tool to call an internal knowledge API instead of Vector.
Related: AI & Chat, Chat Trigger.