
Bot Training interface where you test advanced prompt techniques with the built-in test panel
Multi-step prompting
Many business tasks are too complex for a single prompt instruction. Multi-step prompting breaks a complex task into a sequence of smaller steps the agent follows in order.When to use multi-step prompts
Use multi-step prompting when your agent needs to:- Collect multiple pieces of information before taking action
- Follow a decision tree based on user responses
- Complete a workflow with validation checkpoints
- Handle a process that has a specific required order
How to structure multi-step prompts
Number each step clearly and include transition language so the agent moves naturally from one step to the next.Multi-step prompt example
Using knowledge base references in prompts
Your Knowledge Base stores the detailed information your agent needs — pricing, FAQs, policies, product specs. Your prompt should tell the agent exactly how and when to use this knowledge.Direct the agent to the knowledge base
Knowledge base reference pattern
When to reference the knowledge base vs. the prompt
As a rule of thumb, if the information changes frequently (pricing, hours, availability), put it in the knowledge base. If the instruction is about how the agent should behave, put it in the prompt.
Conditional prompt logic
Conditional logic lets your agent respond differently based on what the user says. This is one of the most powerful techniques for creating agents that feel intelligent and responsive.If-then patterns
Conditional logic examples
Nested conditions
For more complex scenarios, you can nest conditions:Nested conditional logic
Tone calibration strategies
Getting the right tone is critical. Too formal and your agent sounds robotic. Too casual and it may seem unprofessional. Here are strategies for dialing in the perfect tone.Tone spectrum
Define where your agent falls on the spectrum and give concrete examples:Tone calibration
Adapting tone to the situation
Situational tone adjustment
Handling objections and pushback
Real customers push back, negotiate, and raise concerns. Prepare your agent for the most common objections.Objection handling patterns
Prompt versioning and A/B testing
As your AI agent handles more conversations, you will want to test different prompt approaches to see which performs better.Version your prompts
Keep a record of each prompt version so you can track what changed and how it affected performance.Prompt versioning example
A/B testing with workflows
You can test different prompts by creating two versions of your bot and routing traffic between them using HoopAI workflows:- Create two bot versions with different prompts (Version A and Version B)
- Set up a workflow that randomly assigns incoming conversations to one of the two bots
- Monitor performance in the Conversation AI Dashboard for each version
- Compare metrics like resolution rate, handoff rate, and customer satisfaction
- Promote the winner and iterate further
For detailed guidance on measuring performance and running systematic tests, see the Optimization and testing guide.
Next steps
Prompt engineering 101
Review the foundational framework that these advanced techniques build on
Common prompt mistakes
Make sure you are not making any of the top 10 mistakes before optimizing
Optimization and testing
Systematically measure and improve your prompt performance
Knowledge base
Set up the knowledge sources that power your AI agent’s answers