Skip to main content
Prompt engineering is the practice of designing AI instructions that are clear, specific, and optimized for the task at hand. Unlike casual AI interactions, business automation requires prompts that are robust, modular, and capable of handling dynamic information while maintaining consistent quality.

Where to use prompts in Cassidy

Prompts serve different purposes depending on where you use them:
System instructions that define your Agent’s role, personality, and behavior across all interactions. Think of these as the Agent’s permanent memory.Example: A customer support Agent configured with tone guidelines, response format, and escalation procedures.
Agent configuration panel showing system instructions
Learn more in Build and configure an Agent.

Core principles

Every effective prompt follows these four principles:
  1. Clarity and specificity — every instruction should be unambiguous and actionable. Avoid vague language that could produce inconsistent results.
  2. Structured organization — well-organized prompts follow a logical flow that guides the AI step by step.
  3. Dynamic context support — business prompts must handle changing information while maintaining quality and format consistency.
  4. Robust instruction following — include explicit formatting requirements and constraints for reliable automation.

The seven-section prompt structure

Every effective business prompt should follow this structure. You do not need all seven sections for every prompt — use what is relevant to the task.

1. Role and objective

Define the AI’s role and primary goal. This sets context and expectations.

2. Instructions

Provide detailed, step-by-step guidance for completing the task.

3. Reasoning steps

Break down the thought process the AI should follow. This ensures consistent logic across different inputs.

4. Output format

Specify exactly how the response should be structured.

5. Examples

Provide complete examples that demonstrate expected input-output relationships. Examples enable few-shot learning and clarify ambiguous instructions.

6. Context

Include all information the prompt needs to reference. This section changes depending on the situation.
When using Agent system instructions, you often provide context directly in your chat message instead of a formal context section. When using Workflow prompts, you reference variables from previous steps or triggers.
In Workflows, reference variables from previous steps. In Chat, reference Knowledge Base items with #.

7. Final instructions

End with explicit step-by-step thinking instructions and formatting reminders.

Formatting best practices

Different models have preferences for structure syntax:
  • GPT (OpenAI) works well with markdown formatting (headers, bullet points, bold)
  • Claude (Anthropic) responds well to XML tags like <instructions> and <examples>
Regardless of syntax, the seven-section structure is the most important element. Pick a formatting approach and use it consistently throughout your entire prompt. For model-specific guidance, see Choose the right AI model.

Sample prompts

The power of examples

Examples are the most impactful section of any prompt. They serve as training data for the AI, demonstrating exactly what you expect. Effective examples should:
  • Include complete input-output pairs that show the full transformation from raw input to desired output
  • Demonstrate how to handle different scenarios — include edge cases if they matter
  • Match your specified output format exactly — the AI mirrors what it sees
When outputs are not quite right, adding one or two well-crafted examples is often more effective than rewriting your instructions.

Advanced techniques

Always include explicit instructions for the AI to “think step by step” in your final instructions section. This improves accuracy for complex tasks by forcing the model to break down its reasoning process before producing a final answer.
Use precise language to control output boundaries:
  • “Only return the [output type], nothing else”
  • “Do not include introductory or closing text”
  • “Keep the response under 200 words”
  • “Use only the information provided in the context section”
Constraints prevent the AI from adding unnecessary preamble, disclaimers, or off-topic content.
For production Workflow prompts, include instructions for handling edge cases:
  • “If the input is empty, return: ‘No data provided’”
  • “If the information is ambiguous, state the ambiguity and provide your best interpretation”
  • “If the request falls outside your defined scope, explain what you can help with instead”
This prevents Workflow failures and ensures graceful handling of unexpected inputs.
Effective prompt engineering is iterative. Test your prompts with different inputs, review the outputs, and refine based on what you learn. Small adjustments often lead to big improvements.

Next steps

Chatting with an Agent

Put your prompts to use — including the prompt library for reusable templates.

Build and configure an Agent

Apply your prompt engineering skills to Agent system instructions.

Building a Workflow

Use prompts in Workflow actions with dynamic variables.