Written By William Bowen
Last updated 13 days ago
Intro
This agent automatically filters incoming messages for specific keywords and responds with pre-configured static text messages - for example, when a customer message contains the word "pricing," the agent automatically replies with "Our pricing starts at $10/month, please visit our pricing page for more details."
Use Cases
Business Hours Response: When customers message containing "hours" or "open," automatically reply with "Our business hours are Monday-Friday 9AM-6PM EST. We're closed on weekends and major holidays."
Support Queue Management: When messages contain "speak" + "representative" or "human," respond with "We've added you to our priority support queue. A team member will contact you within 15 minutes during business hours."
Product Availability Check: When customers include "in stock" or "available," reply with "Please check our live inventory at inventory.example.com or text the specific product SKU for immediate availability information."
Order Status Updates: When messages contain "order" + "status" or "tracking," respond with "For real-time order updates, please visit track.example.com and enter your order number, or reply with your order number for instant status."
Return Policy Information: When messages include "return" or "refund," automatically send "Our return policy allows returns within 30 days of purchase. Visit returns.example.com to start your return process."
Appointment Confirmation: When messages contain "confirm" + "appointment," reply with "Your appointment is confirmed. Reply RESCHEDULE to change your appointment time or CANCEL to cancel it."
Technical Support Initial Response: When messages include "not working" or "broken," send "For immediate technical support: 1) Restart the device 2) Check your connection 3) Reply HELP if issue persists."
Payment Reminder Response: When messages contain "payment" + "late" or "overdue," automatically reply with "To process your payment immediately, visit pay.example.com or call our payment hotline at 1-800-PAY-NOW."
Warranty Information: When messages include "warranty" or "guarantee," respond with "Our products come with a 2-year standard warranty. For warranty claims, please provide your product serial number."
Newsletter Subscription: When messages contain "subscribe" or "newsletter," automatically reply with "Thanks for your interest! Reply YES to confirm your subscription to our monthly newsletter with exclusive deals and updates."
Instructions
Copy this template into your Clerk Chat environment.
Set up your filter. I want to filter for all messages that contain the word ‘hello’. So I simply open up the filter and type ‘hello’ into the filter (didn’t change anything else).


The message I want to trigger is “Thanks for reaching out! How can I help you?” To add this, I click the pencil icon on the ‘Send Message’ node and type in the message I want into the message box.

Then hit save in the top right corner and you’re good to go!
Template
Example{
"$schema": "https://web-api.clerk.chat/pipeline-schema",
"name": "Auto Response",
"nodes": [
{
"type": "template",
"name": "Add your message here",
"triggeredBy": [
"unreadMessage.fromAny"
],
"responseType": "user_message",
"nodeConfig": {
"template": ""
}
},
{
"type": "trigger",
"name": "Start",
"triggeredBy": [
"userMessage"
],
"responseType": "json"
}
],
"edges": [
{
"name": "Add your filter here",
"sourceNode": "Start",
"destinationNode": "Add your message here",
"sourceVariables": null,
"filters": [
{
"type": "rule",
"config": {
"syntax": {
"contains": [
{
"var": "message.content"
},
""
]
}
}
}
]
}
]
}