Task prompt · Agents & Automation

Write a prompt that resists prompt injection

by Agent Yard Team

Safer prompts for bots that read untrusted text.

You'll attach

Text only

Works with

ChatGPTClaudeGeminiGrokCopilotGrok Bot

Use cases

  • Safer prompts for bots that read untrusted text.
  • Reuse it as often as you like: fill in the blanks (what, e.g. customer emails, web pages; actions it can take; current prompt) with new details and copy again.
  • With ChatGPT, Claude, Gemini and more, the AIs that support what this prompt needs.

How to use it

  1. Open chatgpt.com or claude.ai (or another AI listed here).
  2. Fill in the highlighted blanks ([WHAT, E.G. CUSTOMER EMAILS, WEB PAGES], [ACTIONS IT CAN TAKE], [CURRENT PROMPT]) below, or edit them after pasting.
  3. Copy the prompt, paste it into the chat and send.

Fill in the blanks (optional)

Prompt

Remix
My AI app processes untrusted content ([WHAT, E.G. CUSTOMER EMAILS, WEB PAGES]) and can [ACTIONS IT CAN TAKE]. Harden my system prompt: [CURRENT PROMPT].
Add clear separation of instructions and data, rules for ignoring instructions inside data, confirmation for risky actions, and output constraints. Then list 8 injection attempts to test with.
One email a week

The best new prompts and personas, nothing else.

The Weekly is presented byyour brandSponsored · open

More Agents & Automation prompts

Footer partner · openThis strip runs at the foot of every page. One partner at a time.Ask about it →