Skip to main content
Your Conversation AI bot is only as good as the prompt behind it. This guide walks you through building a complete Conversation AI prompt from scratch — covering identity, instructions, knowledge boundaries, escalation rules, and channel-specific considerations. Before diving in, make sure you understand the 4-part framework (Role, Task, Guidelines, Examples) that forms the foundation of every effective prompt.
Create new bot dialog with four bot type options

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.
Identity section
Key elements to include:
  • 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
Number your instructions in priority order. When the bot faces ambiguity, it will lean toward the higher-priority task.
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
Skipping knowledge boundaries is the number one cause of AI hallucinations. Always tell the bot what it does NOT know — not just what it does.
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.
Escalation rules
Learn how to configure handoff actions in Conversation AI actions.
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.
Complete prompt — dental practice
Result: The bot provides accurate, empathetic, on-brand responses. It knows when to escalate. It collects the right information. Patients feel heard.

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
Collecting information one piece at a time feels more natural and gets higher completion rates than asking for everything at once. Model this pattern in your examples.

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.
For a deeper dive into testing methodology, see Prompt optimization and testing.

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
Last modified on March 5, 2026