Intro
This article explains the difference between the Role and Instructions fields when creating an agent in Domo, and how to use each field effectively. They serve distinct purposes and work best when they stay focused on their respective jobs.Understand Each Field
Role
Role defines who the agent is. It sets the agent’s persona, specialty, and point of view. Think of it as the job title and character description — a single sentence or short paragraph that tells the agent what kind of expert it should embody. The Role is applied as a framing prefix on every user message, so it continuously reinforces the agent’s identity throughout a conversation. What belongs here:- The agent’s area of expertise or domain
- The agent’s perspective or professional lens
- A brief statement of primary purpose
- Numbered steps or procedures (use Instructions)
- Rules about tone or formatting (use Instructions)
- Conditional logic or tool guidance (use Instructions)
Instructions
Instructions define how the agent operates. This is the agent’s operating manual: the steps it should follow, the rules it must respect, and the behaviors it should exhibit when responding. Instructions are injected into the agent’s system context — the foundational layer that governs every response. What belongs here:- Step-by-step workflows (e.g., “First check X, then summarize Y”)
- Tone and formatting rules (e.g., “Always respond in bullet points”)
- Guardrails and constraints (e.g., “Only answer questions related to sales data”)
- Tool usage guidance (e.g., “Use the CRM tool before answering pipeline questions”)
- Template variables for dynamic content (e.g.,
${userName},${fiscalYear})
- The agent’s persona or identity (use Role)