Overview
When a conversation starts, Fliqr AI sends your system prompt to the language model along with the conversation history. The model uses your instructions to decide what to say, what to avoid, and how to format its output. You write the system prompt once and it applies to all conversations handled by that agent. System prompts are also where you inject dynamic contact data using field variables — so the agent can address customers by name, reference their account, or adapt its behavior based on stored attributes.Prerequisites
- An AI Agent configured in Fliqr AI — see AI Providers
- Basic familiarity with your AI Agent’s intended use case
- (Optional) Custom User Fields set up for your contacts — needed for variable injection
Anatomy of a Good System Prompt
A system prompt that produces reliable results typically has four sections:- Role definition — Who is the agent? What company does it represent?
- Context and constraints — What can it discuss? What is off-limits?
- Output format — Should it reply in plain text, or return structured JSON?
- Examples — One or two short examples anchor the model’s behavior for edge cases.
Writing Your First System Prompt
1
Open the Agent editor
Go to AI Agents → select your agent → System Prompt tab.
2
Define the role
Start with a one-sentence role statement. Name the company, the job, and the scope.
3
Add constraints
State explicitly what the agent must not do. Constraints prevent the model from improvising in ways that create liability.
4
Specify output format
If your Flow expects structured output (quick replies, cards), instruct the model here. Otherwise, plain text is the default.
5
Test in the Playground
Open the Playground tab and send a few test messages, including edge cases like off-topic requests or questions your knowledge base does not cover.
Complete Example: Customer Service Agent
The following prompt is production-ready for a general customer service agent. Adjust the company name, scope, and fallback instruction to match your context.Injecting Contact Data with Field Variables
You can inject stored contact data into the system prompt at runtime using the{{field_name}} syntax. Fliqr AI replaces these placeholders with the contact’s actual values before sending the prompt to the model.
Field variables are replaced at conversation start. If a variable has no value for a given contact (e.g.,
{{last_order_id}} is empty), it renders as an empty string. Add a conditional instruction to handle missing values gracefully: "If last_order_id is not provided, ask the customer for their order number."JSON Output Prompting
When your Flow needs the agent to return structured data — such as quick replies, cards, or a handover signal — instruct the model to respond exclusively in JSON. Combining this with a strict schema example keeps the output consistent.Common Mistakes
Example Prompts for Different Use Cases
Sales Qualifier
Sales Qualifier
FAQ Bot
FAQ Bot
Appointment Scheduler
Appointment Scheduler
What’s Next
Knowledge Sources
Add documents and URLs so your agent answers from your own content.
Functions & Actions
Let your agent call external APIs to retrieve live data mid-conversation.