π How to setup AI Agent (Step by Step Guide)
π§ Overview
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.
π οΈ Step 1: Create a New AI Agent
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.
π Step 2: Create a Knowledge Base
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.
π€ Step 3: Configure AI Agent Behavior in Studio
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.
π Step 4: Create Agent Transitions (Optional but Recommended)
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.
π§ͺ Step 5: Test the AI Agent (Emulator)
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.
π Step 6: Connect Messaging Channels
Go to Settings > Messaging Channel.
Choose from:
WhatsApp
Facebook Messenger
Instagram
LINE
Website Live Chat
For WhatsApp:
Simply scan the QR code to connect
No complex WhatsApp Business API setup needed
βοΈ Step 7: Set Workflow Trigger
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.
β
Final Test
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βre Done!
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.
Last updated