Tips for training your agents
- Give explicit instructions
- Example: “Any time you post a message via the Slack tool on behalf of the user, prepend your message with: ‘Hypermode Agent Mr. Robot:’ but only do that when you post in Slack. Make sure not to do so when just responding to the user.”
- Set clear boundaries
- Example: “Only answer questions related to the Hypermode Agents. If asked about other products, politely decline.”
- Specify output format
- Example: “Respond using numbered steps for instructions, and use bullet points for lists.”
- Provide example interactions
- Example:
- User: “How to reset the password?”
- Agent: “1. Go to the login page. 2. Click ‘Forgot Password’. 3. Follow the instructions sent to your email.”
- Example:
- Define tone and style
- Example: “Use a friendly and professional tone. Keep responses under 100 words unless more detail is requested.”
- Anticipate common questions
- Example: “If a user asks about pricing, direct them to the pricing page and offer to connect them with sales.”
- Tell the agent what not to do
- Example: “Don’t provide legal or medical advice. Don’t make up information if you are unsure.”
- Test and revise
- After writing your prompt, test it with sample requests. If the agent’s responses are off-target, revise your instructions to be even more specific.