Skip to main content

How to Write Instructions for Salesmsg AI Agents

Master AI Agent instruction writing with do's and don'ts, real examples, and expert tips for better customer conversations

O
Written by Operations Manager

How to Write Effective AI Agent Instructions

Learn how to create high-performing system prompts for your Salesmsg AI Agent that deliver accurate, consistent responses while maintaining your brand voice.


Why Good Instructions Matter

Well-written AI Agent instructions:

  • Improve response accuracy across different scenarios

  • Ensure consistent brand voice and messaging

  • Reduce token usage through clear, structured prompts

  • Minimize the need for manual intervention and rework

  • Create reliable qualification flows and appointment booking


If in Doubt - Start with Enhance Prompt

The Enhance feature helps you get better results from your AI agent without needing to rewrite anything manually. With one click, it rewrites your instructions to fit your agent's current settings. You can focus the rewrite with up to three preset options and add a note of up to 1,000 characters. Enhance also gives you up to three short recommendations.

This feature makes your agent sound more natural, handle complex questions more smoothly, and achieve goals more consistently, all while giving you full control to review and apply updates when you’re ready.

• More natural and engaging conversations
• Clearer question flow and improved responses
• Smarter handling of tricky or off-topic messages
• Better performance toward your agent’s main goal

With Enhanced Prompts, improving your AI agent becomes simple, fast, and completely in your control.

Before you publish, Validate reviews your instructions and lists any fixes it suggests. An empty list means your instructions are in good shape.


Instruction Structure

Organize your AI Agent instructions using these clear sections:
​

1. Agent Role

Define what your AI agent is and its primary purpose.

Example:

You are a friendly customer service representative for ABC Company. Your role is to help customers with product questions and guide them to make purchases.

2. Constraints and Guidelines

Set clear boundaries for tone, message length, and behavior.

Example:

- Maintain a professional but friendly tone - Keep responses under 50 words for SMS - Ask one question at a time - Never share customer personal information - Ask for clarification when input is unclear

3. Company Information

Provide essential context about your business, services, and unique value propositions.

4. Main Goal

Clearly state the primary objective and desired outcomes.

5. Instructions & Algorithm

Detail the step-by-step process your AI Agent should follow, including decision trees and qualification criteria.

6. Objection Handling

Prepare responses for common customer objections or concerns.

7. FAQ

Include answers to frequently asked questions your AI Agent will encounter.

8. Knowledge Base

Reference any additional resources or documentation.

9. Success & Fallback Criteria

Define when conversations should be marked as successful or when they need human intervention.


Merge Fields and Actions

Type / in the instructions field to open a menu with two tabs:

  • Merge fields: insert a contact field, such as the contact's first name. The agent fills it in from the contact's details and can ask for it if it's missing.

  • Actions: insert a step the agent carries out at that point in the conversation: Add tag, Remove tag, Add contact note, Add conversation note, Send SMS, Stop agent and Handoff to human. Calling agents have the same actions except Stop agent.

Place each action in the step of your instructions where it should happen, for example add a tag right after a lead qualifies.


Formatting Best Practices

Use Simple Markdown

  • Structure content with headings (#, ##, ###)

  • Create short bullet lists with - bullets

  • Avoid HTML tags and complex formatting

  • Keep tables simple or avoid them entirely

Keep It Concise

  • Remove unnecessary words and fluff

  • Prioritize constraints, goals, and examples

  • Be complete but not verbose

  • Focus on actionable instructions


Channel-Specific Constraints

Always specify limits for your communication channel:

  • SMS: Maximum 300 characters or 50 words

  • Other channels: Set appropriate length limits

  • Include pacing instructions (one field at a time)


Writing Effective Constraints

Good constraints prevent problems before they occur:

āœ… Do: 
- Ask for clarification if input is unclear
- Qualify leads before providing pricing
- Direct conversation toward booking appointments

āŒ Don't:
- Share personal customer information
- Provide medical advice
- Make promises about pricing without qualification

Testing and Iteration

  1. Start Small: Test with 5-10 real conversations

  2. Log Issues: Track where the AI Agent doesn't perform as expected

  3. Refine Gradually: Update constraints and examples based on results

  4. Version Control: Keep track of prompt changes and their impact

  5. Monitor Performance: Regularly review conversation outcomes


Common Mistakes to Avoid

Overly Complex Instructions

Keep your algorithm simple and easy to follow. Break complex processes into smaller steps.

Missing Edge Cases

Consider what happens when customers provide unexpected responses or refuse to answer questions.

Unclear Success Criteria

Be specific about when a conversation should be considered successful or when human intervention is needed.

Inconsistent Tone

Write the tone you want into your constraints. If you use an older agent that still has separate tone and length settings, make sure your constraints match them.


Example: Complete Instruction Set

Here's a condensed example showing proper structure:

## 1. AGENT ROLE You are a friendly appointment scheduler for HealthCare Plus. 
## 2. CONSTRAINTS - Professional, caring tone - SMS responses under 50 words - Ask one question at a time - Verify insurance before booking
## 3. COMPANY INFO HealthCare Plus provides same-day medical appointments...
## 4. MAIN GOAL Qualify patients and book appropriate appointments based on their needs and insurance coverage.
## 5. INSTRUCTIONS 1. Greet warmly and ask about their health concern 2. Collect insurance information 3. Verify coverage for requested service 4. Offer available appointment times 5. Confirm booking details
## 6. OBJECTION HANDLING "I don't have insurance" → "We offer affordable self-pay options..."
## 7. FAQ Q: How much does a visit cost? A: Costs vary by service. Let's verify your insurance first...
## 8. SUCCESS CRITERIA - Patient books confirmed appointment - All required information collected - Insurance verified and coverage confirmed

Getting Help

If you need assistance writing or optimizing your AI Agent instructions, contact our support team through the help center. We can review your prompts and provide recommendations for improvement.

Pro Tip: Start with a simple instruction set and gradually add complexity as you identify areas for improvement through real customer interactions.


Frequently Asked Questions

What does the Enhance feature do?

With one click, Enhance rewrites your instructions to fit your agent's current settings. You can focus the rewrite with up to three preset options and add a note of up to 1,000 characters.

How long should my agent's SMS responses be?

For SMS, set a maximum of 300 characters or 50 words in your constraints.

How do I add merge fields or actions to my instructions?

Type / in the instructions field to open a menu with the Merge fields and Actions tabs.

How should I test new instructions?

Start small: test with 5-10 real conversations, track where the AI Agent doesn't perform as expected, and update your constraints and examples based on the results.


Related Articles


Need Help? āœ‹šŸ»

Contact us on live chat or send an email to us at [email protected].

Did this answer your question?