Skip to main content
Editor

System prompt

Configure the system prompt to define the agent's personality, role and rules.

System prompt

The system prompt holds the initial instructions that define how the agent behaves: who it is, what its role is, and how it should work with users. Those instructions reach the language model before any message from the user.

The field is in the Definitions section of the editor.

Writing one

Describe the agent in plain language. Cover:

  • Role — what the agent is ("You are an HR assistant specialising in questions about benefits").
  • Tone — how it should speak ("Answer concisely and with empathy").
  • Scope — what it should and should not do ("Do not answer questions outside the topic of benefits").
  • Language — where it matters, say which language to answer in ("Always answer in Portuguese").

Argument variables

You can use the agent's input arguments inside the system prompt with the {ArgumentName} syntax. The value is substituted on every run.

If the agent has a CustomerName argument, for instance, you can write:

You are helping the customer {CustomerName}. Be courteous and use their name through the conversation.

See Arguments for creating and managing arguments.

tip

If you created the agent with Roberty Autopilot, the system prompt is already filled in. Review and adjust it before publishing.