
Choose the right bot type before writing your prompt: General Q&A, Appointment booking, Templates, or custom
Prompt structure for Conversation AI
Conversation AI prompts follow a specific structure optimized for text-based interactions. Each section builds on the last to create a complete set of instructions your bot can follow reliably.1
Define the bot's identity
Start with who the bot is. This shapes every response it generates.Key elements to include:
Identity section
- Bot name and role
- Business name and industry
- Who the bot is talking to (customers, leads, patients, tenants)
- Tone and personality traits
- Language preferences
2
Write clear instructions
Define what the bot should accomplish, in priority order. Be specific about the information it needs to collect and the actions it should take.
Instructions section
3
Set knowledge boundaries
Tell the bot exactly where its knowledge starts and stops. This is the single most important step for preventing hallucinations.
Knowledge boundaries
4
Define escalation rules
Every Conversation AI bot needs a clear plan for when to hand off to a human. Define the triggers and the handoff process.Learn how to configure handoff actions in Conversation AI actions.
Escalation rules
5
Add example conversations
Include 2-4 examples covering your most common interaction types. Examples teach the bot patterns that are hard to capture in rules alone.
Example conversations
Good prompt vs. bad prompt
Here is a side-by-side comparison showing how the same business scenario produces dramatically different results depending on prompt quality.- Good prompt
- Bad prompt
Complete prompt — dental practice
Channel-specific considerations
Conversation AI can operate across multiple channels, and each channel has different constraints and user expectations. Tailor your prompt — or add channel-specific guidelines — to account for these differences.SMS
SMS conversations are concise by nature. Users expect quick, short replies.SMS-specific guidelines
Web chat (live chat widget)
Web chat allows for richer formatting and longer responses. Users are often browsing your site and want contextual help.Web chat-specific guidelines
Facebook and Instagram
Social media conversations are casual and often initiated from ads or posts.Social media-specific guidelines
You can set channel assignments for your bot in Bot settings. Each bot can be assigned to one or more channels.
Handling common scenarios
Here are prompt patterns for the most frequent types of interactions your Conversation AI bot will handle.Greetings and opening messages
Greeting pattern
FAQ responses
FAQ handling pattern
Appointment booking
Appointment booking pattern
Out-of-scope questions
Out-of-scope pattern
Testing and iterating
Writing a prompt is not a one-time task. The best prompts are refined over time based on real conversations.1
Test with common scenarios
Use HoopAI’s bot trial mode to run through your 10 most common customer questions. Does the bot handle each one correctly?
2
Test edge cases
Try questions that are slightly outside your bot’s scope. Does it escalate gracefully? Does it avoid making things up?
3
Review real conversations
After going live, check the Conversation AI dashboard regularly. Look for conversations where the bot got stuck, gave incorrect information, or failed to escalate.
4
Refine and repeat
Update your prompt based on what you find. Add new examples for scenarios the bot struggled with. Tighten guidelines where the bot went off-script. Remove instructions that are redundant or conflicting.
Next steps
Prompt engineering 101
Review the foundational 4-part framework for writing AI prompts
Voice AI prompts
Adapt your prompts for natural phone conversations with Voice AI
Common prompt mistakes
Avoid the top 10 mistakes that lead to poor bot performance
Bot settings
Configure channels, status, and primary bot assignments