Limiting Number of Messages on your AI Agent
In this article, you will learn how you can implement the message limits for your AI agents
Limiting Messages Based on Throttling Settings
CivicAi provides throttling settings to control the rate of user interactions:
- Messages per Conversation: Set a limit on the number of messages allowed in a single conversation. Define the time frame (in hours) for this limit and add a custom message that will be displayed when the limit is exceeded.
- Conversations Limit: Establish a limit on the number of conversations a user can initiate within a specified time frame. Customize the message displayed when this limit is reached.
For more detail on configuring these settings, refer to CivicAi Security Documentation.
Limiting Messages based on Audience
Limiting message for different user segments, such as free users or specific groups, helps manage usage effectively. By utilizing CivicAi AI Studio and AI Follow-up Event, you can control message counts efficiently. Here's how:
- Drag the "AI Response Follow-up" Event: This event will trigger subsequent actions based on user interactions.
- Add a Code Execution Node: Implement a message counter within this node to track the number of messages exchanged.
- Implement Conditional Logic: Use an 'if' statement to check if the message count has reached the predefined limit. If so, you can transfer the chat or take appropriate action.
To restrict access based on user segments, you need to determine whether a user is free or paid within your system. Then, you can store this information in session data or contact data using the following JavaScript code:
$civicaiChatbot.set("visitor:data", {
userType: "freeUser",
});
// or
$civicaiChatbot.set("session:data", {
userType: "freeUser",
});Implementing the Paywall
Adding a paywall can serve as a new business model, allowing you to monetize premium features or extended usage. This approach encourages users to subscribe for enhanced services, balancing free access with revenue generation. For detailed guidance on setting up a paywall.
Related Articles
Queue Replies
Learn how to setup Queue Replies in CivicAi Chatbot
Prompt Templates examples
Examples of detailed bot persona prompts and their restrictions for AI chatbots.
Building an AI Assistant for HR Operations
Handle employee queries, onboarding, and more with AI
Build an Internal AI Knowledgebase for your Team
Use AI to automate team workflows, onboard faster, and give instant access to business knowledge.
Make your AI Chatbot Proactive to Boost Visitor Engagement
Set up proactive chatbot triggers in CivicAi to boost visitor engagement and start conversations at the right moments.
How to Set Up Notifications for Human Escalation
This guide provides step-by-step instructions on how to set up notifications across various platforms when a human escalation request is made.