BouncerBouncer Docs
Prompt Editor

Write a Prompt Template

The three parts of a prompt, variables, media and size limits


A prompt template tells an AI agent who it is, how to talk and what it knows. Open Prompt Editor → My Templates and click New template, or Edit template on an existing one.

Template editor: size check, Template Name, Category, Description and the Instructions, User Prompt and Product Knowledge tabs

Name and category

  • Template Name: required. Pick something your team will recognise in a workflow, e.g. Support Bot v2.
  • Category: a label for finding the template. It doesn't change how the AI behaves. See categories.
  • Description (Optional): a one-line note on what the template is for.

The three parts of a prompt

A template has three tabs. Each does a different job, and Bouncer handles each one differently:

PartThink of it as…How Bouncer uses itNeeded?
InstructionsThe rules: house rules for the agentSent first, marked as strict rules the AI must follow on every replyOne of these two
User PromptThe job descriptionSent next, as the agent's role, goals and how to handle situationsOne of these two
Product KnowledgeThe cheat sheetAdded to the end, under a "Product knowledge" headingOptional

You need Instructions or User Prompt (or both) to save. A dot next to a tab shows it has content.

All three are sent on every reply, so whatever you put in them, the AI pays for (in credits) every time.

The names differ in the workflow editor. When you load a template into an AI Agent step, the same three parts appear as Instructions, System Prompt and Product Info. "System Prompt" there is the User Prompt from here, and "Product Info" is Product Knowledge.

1. Instructions: the rules

Short, firm rules about personality, tone and limits. Write them as a list of musts and must-nots:

Be a warm, friendly support agent for a skincare shop.
Always reply in the customer's language (English or Bahasa Malaysia).
Never promise delivery dates. Never discuss competitors.
If you don't know the answer, say a team member will follow up.

Bouncer gives these to the AI ahead of everything else, as high-priority rules. Use this tab for anything the agent must never get wrong.

Keep it short. If it's longer than about 10 lines, it probably belongs in the User Prompt.

2. User Prompt: the job description

The main body: who the agent works for, what it's trying to achieve, and how to handle common situations.

You are the WhatsApp assistant for {organization.name}.

Greet the customer by name: {contact.name}.
Your goal is to answer product questions and help them place an order.

When a customer asks about price, give the price from the product list.
When they're ready to buy, ask for their delivery address.
If they want to speak to a person, tell them a team member will reply soon.

This is where variables like {contact.name} are most useful.

3. Product Knowledge: the cheat sheet

Facts the agent should look up when answering: products, prices, opening hours, delivery areas.

Product list:
1. Hydrating Serum 30ml – RM89
2. Daily Sunscreen SPF50 – RM65
Free delivery in Klang Valley for orders above RM150.
Open Monday to Saturday, 9am to 6pm.

Write facts, not instructions. "Serum costs RM89" belongs here; "always mention the serum" belongs in the User Prompt. Variables are not filled in on this tab.

Product Knowledge is sent with every message, so keep it to what the agent needs often. For long material, such as a full FAQ or a 200-item catalogue, use the Knowledge Base instead: the agent only searches it when a question needs it.

Which tab does it go in?

You want the agent to…Put it in
Never share bank details or discuss competitorsInstructions
Always reply in the customer's languageInstructions
Act as a sales assistant who books demosUser Prompt
Ask for an address when the customer is ready to buyUser Prompt
Know your 10 products and their pricesProduct Knowledge
Answer from your 30-page policy documentKnowledge Base

Personalise with variables

Write a variable in single curly braces, and Bouncer fills it in for each conversation:

VariableBecomes
{organization.name}Your organization's name
{contact.name}The contact's name, or "Customer" if you don't have it
{contact.phone}The contact's phone number
{contact.tags}The contact's tags, separated by commas
{contact.stage}The stage of the contact's deal
{contact.pipeline}The pipeline of the contact's deal
{deal.title}The deal's title
{deal.value}The deal's value
{deal.currency}The deal's currency
{datetime.today}Today's date, YYYY-MM-DD, in your organization's time zone
{datetime.timezone}Your organization's time zone

Variables work in Instructions and User Prompt. The deal variables use the contact's open deal, or their most recent deal if none is open. If a contact has no deal at all, they become empty.

Use single braces: {contact.name}. Double braces such as {{contact.name}} are not filled in and the AI sees them as plain text.

The Available Variables panel under each tab lists the most common ones.

Let the agent send images and files

The Media panel on the right lists files from your Media Library. To let the agent send one:

  1. Click in the tab where the instruction belongs and put the cursor where you want it.
  2. Click Insert at cursor on a file. Bouncer adds a line such as {{send_image:https://…}}.
  3. Write a sentence around it saying when to send it, e.g. When a customer asks for the price list, send {{send_image:https://…}}.

If no tab is focused, Bouncer copies the line instead so you can paste it.

The agent can only send media if AI Media Sending is turned on in the AI Agent step, on the Multimodal tab. Without it, these lines do nothing.

Keep the prompt a healthy size

A box at the top of the editor tracks the combined length of all three tabs:

MessageCombined lengthWhat it means
Prompt size looks healthyUnder 20,000 charactersGood
Large prompt warning20,000 – 39,999Uses more AI credits and leaves less room for the conversation
High runtime risk40,000 or moreSlower, costlier replies. Bouncer asks you to confirm before saving

Each tab has its own limit: Instructions up to 15,000 characters, User Prompt and Product Knowledge up to 50,000 each, and all three together up to 75,000. A counter under each tab shows where you are.

Long prompts cost more because the whole prompt is sent with every reply. The most effective fix is moving reference material into the Knowledge Base.

Tips

  • Be specific. "Reply in 2 to 3 short sentences" works better than "be concise".
  • Say what not to do. List topics the agent should avoid and when to hand over to a human.
  • Test before going live. Use Test Workflow in the workflow builder, which runs in a sandbox without saving anything, before switching the workflow on for customers.
  • Re-load after editing. Workflows keep the text they copied, so load the template again in each workflow after you change it.