Write an Agent System Prompt

Draft an agent system prompt that specifies its context, output format, prohibitions, and behavior when information is missing.

Anton Tsevmenko | AI & Web Developer | Team Lead Republished on Oct 18 0 Bookmarks 0 Copies
Bookmark 0

Prompt template

Format
Text Parameterized
Inputs
target_function (text) · Required correct_response_examples (text) · Required
Outputs
system_prompt (text)
Write a system prompt for an agent.

Target function: ${target-function}

Examples of correct responses:
${correct-response-examples}

Specify the context, the exact output format, 5 prohibitions, and how the agent should behave when information is missing. Require the agent to ask follow-up questions instead of making things up. Output only the system prompt.

Replace the ${…} placeholders with your values before using this prompt. See parameters and defaults below

Parameters

Replace each placeholder with your own value, or use its default when one is provided

${target-function} target-function Required
${correct-response-examples} correct-response-examples Required

What you'll create

A reusable agent instruction defines the target function, incorporates correct-response examples and adds five prohibitions with a clarification policy.

Frequently asked questions

What should the agent do when information is missing?

Ask follow-up questions instead of inventing details.

Comments

Tried this prompt? Share what you made, compare results, or ask a question

Up to 4 results. Images up to 2 MB; MP4, WebM, or MOV videos up to 4 MB each