Skip to content

AI Policy Prompt

Use this prompt when asking an AI agent to create a Policy2 policy from a natural-language requirement.

Download the AI prompt

Enter the business requirement below. The page will inject it into a ready-to-copy prompt for an AI agent.

Prompt to give the AI agent
Download and follow https://docs.policy2.net/ai-prompt.md.

Generate a Policy2 policy that does this:

<describe the business decision here>

The prompt tells the agent to:

  • use the self-contained DSL and authoring reference included in the downloaded file
  • return one policy or a coherent set of policies
  • ask for an API key when live validation is needed and no key is available
  • test each policy with curl against POST https://api.policy2.net/run
  • validate temporary examples through POST https://api.policy2.net/run
  • avoid inventing persisted or API-level test records
  • report the validation scenarios separately from the policy JSON
Download https://docs.policy2.net/ai-prompt.md and follow it.
Generate a Policy2 policy that does this:
<describe the business decision here>

Provide the AI agent with an API key if it needs to execute validation requests. The key must have permission to use the execution endpoint.