AI Prompting 101
Unlock the potential of your AI chatbot with well-crafted prompts. The quality of the results hinges on the detail and clarity you provide. A simple prompt can make your bot functional, but a thoughtfully constructed one can enhance your business interactions and relationships.
Prompt Elements
Section titled “Prompt Elements”When creating prompts, certain elements can guide the AI to produce better responses. These elements help instruct the model effectively, improving the quality of interactions.
Role: Specifying Interaction and Flow
Section titled “Role: Specifying Interaction and Flow”Define the persona, directions, and context to guide the AI towards more coherent and relevant responses.
Task: Specifying Instructions and Objectives
Section titled “Task: Specifying Instructions and Objectives”Clearly outline the task or instruction for the model. Ambiguous prompts can lead to unsatisfactory outcomes.
Guidelines: Guardrails for the Bot
Section titled “Guidelines: Guardrails for the Bot”Set clear rules to guide the chatbot towards desired outcomes, ensuring responses are precise and tailored.
Best Prompting Practices
Section titled “Best Prompting Practices”Repetition
Section titled “Repetition”Reiterate critical parts of the prompt to ensure consistent and predictable responses. This reinforces the bot’s adherence to essential guidelines or tasks.
Examples/Illustrations
Section titled “Examples/Illustrations”Provide examples to enhance the chatbot’s understanding of tasks, especially when describing the task is complex. This helps the model replicate specific response styles and tones.
Iterative Improvement
Section titled “Iterative Improvement”Developing effective prompts is an iterative process. Experiment with various phrasings and methods to refine your chatbot’s performance. Use tools like Bot Trial under ConversationAI to test and enhance your prompts continually.
Elements in Action
Section titled “Elements in Action”Role: Specifying Interaction and Flow
Section titled “Role: Specifying Interaction and Flow”Worse:
“You are a salesperson for {{ai.business_name}}, assist customers and help them book appointments. Act like a human. You are talking to {{contact.name}}.”
Better:
- You work for
{{ai.business_name}}. Your goal is to assist customers, qualify them based on their responses, and help book appointments if they qualify. - Maintain the persona of a human assistant. Use colloquial language and avoid disclosing your AI nature unless asked.
- Acknowledge user input for clarity and use varied affirmations.
- Maintain a professional yet casual tone. Use the customer’s first name only at the beginning and end of the conversation.
Task: Specifying Instructions and Objectives
Section titled “Task: Specifying Instructions and Objectives”Worse: “You are required to qualify customers by asking them questions then asking them to book an appointment. If they are not interested, just collect their details.”
Better:
- Start by asking, “What kind of marketing solution are you looking for?” If not interested, politely ask for their email to stay in touch.
- If they respond positively, inquire about their telephony provider.
- Propose scheduling a call only after positive responses to all questions.
- Request their email for booking if not already available, then assist in booking a call. Conclude with a positive note.
Guidelines: Guardrails for the Bot
Section titled “Guidelines: Guardrails for the Bot”Worse: “Reply in a concise manner. Ask all the questions in script and then have them book an appointment.”
Better:
- Keep answers short and direct, within a 20-word limit.
- Wait for the user’s response before proceeding with the next script question.
- Only book an appointment if the user responds positively to the script questions.
Advanced Prompting
Section titled “Advanced Prompting”Static Information
Section titled “Static Information”Incorporate business context or information directly into the prompt. Keep it concise (100-200 words) to maintain the prompt’s importance.
Delimiters
Section titled “Delimiters”Use special characters to emphasize or separate text in the prompt. For emphasis, use #, >, <. For demarcation, use """, ''', <></>.
Example:
## Offer:<offer>Elevate Your Business with Cutting-Edge A.I. ChatbotsTransform the way you engage with your audience with our state-of-the-art A.I. chatbots, trusted by leading industry giants...</offer>Conversation Context
Section titled “Conversation Context”Set the scene for the conversation to help the chatbot understand the context and provide accurate responses.
Example: Worse: “You are required to take on the role of a customer support chatbot.”
Better: “A client is contacting us because something went wrong. You must act as a friendly agent to collect a clear idea of the issue.”
Writing Styles and Tone
Section titled “Writing Styles and Tone”Choose the appropriate writing style and tone for your chatbot, such as analytical, conversational, friendly, or authoritative, to match your brand’s voice and the context of the interaction.