Skip to main content
Once you have mastered the 4-part framework and built working prompts for your Conversation AI or Voice AI agents, it is time to level up. This guide covers advanced techniques that help your AI agents handle complex scenarios, maintain consistent tone, and deliver results that rival human team members.
Bot Training tab with web crawler, links, and test bot panel

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
Include explicit instructions like “Do not skip steps” and “Complete Step 2 before moving to Step 3” to prevent the agent from rushing through the qualification process.

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
Never instruct your AI agent to promise discounts, make commitments, or agree to special terms unless you have explicitly authorized it. Unauthorized promises can create legal and customer service problems.

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:
  1. Create two bot versions with different prompts (Version A and Version B)
  2. Set up a workflow that randomly assigns incoming conversations to one of the two bots
  3. Monitor performance in the Conversation AI Dashboard for each version
  4. Compare metrics like resolution rate, handoff rate, and customer satisfaction
  5. 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
Last modified on March 5, 2026