What is Conversational Chat?
Conversational Chat is PLai’s built-in chat interface where you can:- Have real-time conversations with agents
- View conversation history
- Organize multiple agent chats in tabs
- Search and filter conversations
- Access agent analytics
Getting Started with Chat
Prerequisites
- Agent created and configured
- Streaming enabled in agent configuration
- Agent visible in agents list
Accessing Chat
1
Go to Agents
Navigate to Agents section in your project
2
Select Agent
Find and click the agent you want to chat with
3
Start Chat
Click “Chat” or “Open Chat” button
4
Type Message
Enter your question or prompt and press Enter
Chat Interface
Main Components
The chat interface is organized into three areas, top to bottom:- Agent Tabs — multiple agents can be open at once
- Conversation History — the message thread, for example:
- User: “How do I reset my password?”
- Agent: “You can reset by going to…” (response streams in real-time)
- User: “Can I do it via email?”
- Agent: “Yes, here’s how…”
- Input Field — type your message and click Send
Agent Tabs
You can have multiple agent chats open simultaneously:- Agents open: Support Bot, Billing Bot, FAQ Bot, plus a button to add more
- Currently viewing: Billing Bot
- User: “How do I update my payment?”
- Agent: “You can update in account settings…”
- Currently viewing: Billing Bot
- Switch tabs to talk to different agents
- ✅ Compare agent responses
- ✅ Quick switching between agents
- ✅ Manage multiple conversations
- ✅ Parallel work with different agents
Conversation History
What Gets Stored
Each conversation includes:- Conversation Entry:
- Timestamp: When the message was sent
- Sender: User or Agent
- Content: The message text
- Metadata:
- Tokens used
- Response time
- Any errors
- Tools called (if any)
Viewing Conversation History
Left Panel - Conversation List:- Sep 7, 2:45 PM - “How do I reset?”
- Sep 7, 2:30 PM - “What are your hours?”
- Sep 6, 4:15 PM - “I need help with…”
- Sep 5, 10:00 AM - “Tell me about…”
Conversation Details
Conversation Details (Sep 7, 2:45 PM):- Input: “How do I reset my password?”
- Agent Response (Streaming): “You can reset your password by…” (real-time streaming of response)
- Metadata:
- Duration: 1.2 seconds
- Input tokens: 145
- Output tokens: 67
- Model: Claude 3.5 Sonnet
- Status: Success ✅
Real-Time Streaming
How Streaming Works
- You type: “Write a poem about AI”
- Agent processes the request
- Response starts immediately — tokens arrive continuously:
- “In circuits deep, electric thought flows…”
- “A mind of math, in patterns wrought…”
- “Emerging consciousness, so bright…”
- Complete response appears
Advantages of Streaming
- ✅ Fast feedback - See response start immediately
- ✅ Real-time interaction - Watch response build
- ✅ Better UX - Feels responsive and alive
- ✅ Perceived speed - Starts fast even if full response takes time
Features & Controls
Message Controls
Within the chat interface:- Send Message: Press Enter or click Send button
- Clear Chat: Start fresh conversation (if available)
- Copy Response: Copy agent response to clipboard
- Regenerate: Re-run last request with same input
- Stop Generation: Halt streaming response (if needed)
Filtering & Search
Search conversations:- Search by text content
- Filter by date range
- Filter by member (if shared access)
- Filter by status (success/error)
Sharing Conversations
You can optionally share conversation links with:- Team members
- Stakeholders
- For documentation
Using Agent Tools in Chat
When an agent uses tools during chat:- User: “Fetch the latest sales data”
- Agent: “I’ll look that up for you…”
- Agent calls the sales API
- Agent Response: “Here’s the data: Total sales today: $45,320 …”
- ✅ Tool calls made
- ✅ Tool responses used
- ✅ Final answer from agent
Agent Context
In chat, the agent has access to:Conversation History
All previous messages in the conversation (context window)
Datasources
Knowledge bases configured for the agent
Tools
All tools the agent can call
System Instructions
The prompt that defines agent behavior
Conversation Context
The agent remembers your previous questions:Organization Member Access
If your organization has multiple members:- Owner/Admin: Can access all agent chats
- Editors: Can access agents they have permission to use
- Viewers: Can view conversations (read-only)
Member Filtering
In analytics, you can see:- Which member initiated conversations
- How each member uses the agent
- Usage patterns by team member
Best Practices
Be Specific
Ask clear, detailed questions for better responses
Use Context
Reference previous messages to build on responses
Provide Feedback
Rate responses to improve agent over time
Check Analytics
Monitor how the agent performs in chat
Troubleshooting
Agent not responding
Agent not responding
Check:
- Is agent configuration complete?
- Is streaming enabled?
- Is agent in the agents list?
- Check agent analytics for errors
Response is slow
Response is slow
Causes:
- Agent searching large datasources
- Tool calls taking time
- External API delays
Response is cut off
Response is cut off
This might be:
- Max tokens limit reached
- Connection timeout
- Manual stop requested
Conversation not saving
Conversation not saving
Check:
- You have write permissions
- Browser connection stable
- Storage space available
Can't access chat
Can't access chat
Possible reasons:
- You don’t have permission for this agent
- Agent is in a different project
- Streaming not enabled
Comparing with Structured Output Mode
🔗 Learn about Structured Output: Structured Output Mode
Next Steps
- View Agent Analytics - See conversations and performance
- Configure Agent - Adjust agent settings
- Create Your First Agent - Follow tutorial