📘 How to setup AI Agent (Step by Step Guide)
Last updated
Last updated
Kai is your AI Agent built into the klink.cloud platform to automate customer conversations across messaging channels like WhatsApp, Facebook, Instagram, LINE, and website live chat.
This guide walks you through setting up a fully functional Kai AI Agent—from knowledge base creation to deployment on messaging channels.
Go to the AI Agent section.
Click “Create New Agent”.
Give your agent a name (e.g., “Escape Bar Reservation Agent”).
Set Activity Timeout (default: 10 minutes). This means a conversation will automatically close if inactive for 10 minutes.
Click “Create” and then go to the Studio to configure your agent.
Navigate to Knowledge Base tab.
Click “Create New Knowledge Base”.
Choose one of three training sources:
Write your own Q&A
Upload PDF documents
Sync website content via URL
Example:
To sync with a website:
Choose “Website URL”
Paste the business website (e.g., https://escapebangkok.com)
Select:
Crawl single page (for 1 URL), or
Crawl all pages under the domain
Click “Sync” and wait for training to complete.
In the Studio, click “Add Agent”.
Select the type of agent you want:
Example: “Reservation Agent”
Description: Handles reservations from 5PM to 1AM
Add happy hour info if needed
Write a prompt like:
“You are a reservation agent for Escape Bar, open from 5PM–1AM. Help customers book tables and inform them about happy hour from 6–8PM.”
Set fallback or transition rules:
For example, if a customer asks about “menu” or “wine”, transfer the conversation to the Knowledge Base Agent.
In the Studio, click “Transition”.
Add conditions like:
If user message contains "menu", "drinks", "wine"
→ Transfer to Knowledge Base Agent
Select the appropriate Knowledge Base you created earlier.
Connect agents with drag-and-drop to visualize the flow.
Use the built-in Emulator to simulate conversations.
Try different messages like:
“Can I reserve a table for next Friday at 7PM?”
“Do you have a wine menu?”
The AI will respond based on the configured prompt and transition to Knowledge Agent if needed.
Go to Settings > Messaging Channel.
Choose from:
Facebook Messenger
LINE
Website Live Chat
For WhatsApp:
Simply scan the QR code to connect
No complex WhatsApp Business API setup needed
Go to Workflow Automation.
Click Create New Workflow.
Add Trigger:
When thread is opened
Add Condition:
If channel = [LINE, Facebook, WhatsApp, etc.]
Action:
Assign to AI Agent → Select your created agent
Enable and save the workflow.
Send a real message through the connected channel and check:
Does the AI respond correctly?
Does it switch to the knowledge base agent when appropriate?
Are all reservation details correctly captured?
You’ve now successfully built and deployed an Omni-Channel AI Agent with:
Reservation capabilities
Website-trained knowledge
Multi-channel deployment
Automated workflows
For questions or setup support, contact our team or book a 1-on-1 session.
Start building smarter customer conversations today with Kai AI Agent on klink.cloud.