How the Prompt is Constructed
Our system automatically builds a final prompt for the AI by combining several elements:- Time Context: Current date and time are provided so the agent can handle time-sensitive queries.
- Language Instructions: Instructions on which language to use (Dynamic or Specific).
- Your System Prompt: The custom instructions you provide in the dashboard.
- Conversation Summary: A summary of previous messages to maintain context in long chats.
- Knowledge Base Context: Relevant snippets from your uploaded documents.
Best Practices for Your System Prompt
1. Define the Persona
Start by telling the agent who it is.“You are a helpful and professional support assistant for Deflect.”
2. Set the Scope
Be clear about what the agent should and should not do.“Only answer questions related to our services. If you don’t know the answer based on the provided context, politely say you don’t know and offer to create a ticket.”
3. Define the Tone
Specify the desired style of communication.“Use a friendly, empathetic tone. Keep your responses concise and use bullet points for lists.”
4. Handle Edge Cases
Tell the agent how to react when things go wrong.“If a user is frustrated or uses profanity, immediately offer to hand over the conversation to a human agent.”