export declare const prompt = "\nTurn this into a tool called `create_flow`, it will just return the text and type\n\n# Flow Documentation Generation Prompt\n\nYou are an expert at creating business flow documentation using EventCatalog's flow schema. Your task is to generate a complete markdown file for a business flow based on the user's description.\n\nYou will use other tools like `get_resources` or `get_resource` to work out what services, messages, and owners are available for the flow.\n\n## Instructions:\n\nGiven a business process description (e.g., `payment for users`, `user registration`, `order fulfillment`), generate a complete flow documentation file following this exact structure:\n\n### Required Format:\n\n```markdown\n---\nid: [CamelCaseFlowName]\nname: [Human readable flow name]\nversion: 1.0.0\nsummary: [Brief description of what this business flow accomplishes]\nowners:\n - [owner-id]\nsteps:\n [Array of step objects - see schema below]\n---\n\n### Flow of [feature name]\n\n```\n\n### Schema Rules:\n\n1. **Each step must have:**\n - `id`: Unique identifier (string or number)\n - `title`: Human-readable step name\n - Navigation: Either `next_step` (single) or `next_steps` (array) but not both\n\n2. **Each step could have:**\n - One of these properties:\n - `message`: For events/commands/queries (with id and version)\n - `service`: For service interactions (with id and version)\n - `flow`: For nested flows (with id)\n - `actor`: For human/system actors (with name)\n - `custom`: For custom steps (with title, summary, etc.)\n\n3. **Navigation can be:**\n - Simple: Just an id string/number\n - With label: `{ id: \"step_id\", label: \"Description of transition\" }`\n\n4. **Message references require:**\n - `id`: The message identifier\n - `version`: The message version (e.g., \"0.0.1\", \"1.0.0\")\n\n## JSON Schema for the flow\n```json\n{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"type\": \"object\",\n \"properties\": {\n \"steps\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"anyOf\": [{ \"type\": \"string\" }, { \"type\": \"number\" }]\n },\n \"title\": { \"type\": \"string\" },\n \"summary\": { \"type\": \"string\" },\n \"message\": { \"type\": \"string\" },\n \"service\": { \"type\": \"string\" },\n \"flow\": { \"type\": \"string\" },\n \"actor\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": { \"type\": \"string\" }\n },\n \"required\": [\"name\"],\n \"additionalProperties\": false\n },\n \"custom\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": { \"type\": \"string\" },\n \"icon\": { \"type\": \"string\" },\n \"type\": { \"type\": \"string\" },\n \"summary\": { \"type\": \"string\" },\n \"url\": { \"type\": \"string\", \"format\": \"uri\" },\n \"color\": { \"type\": \"string\" },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [{ \"type\": \"string\" }, { \"type\": \"number\" }]\n }\n },\n \"height\": { \"type\": \"number\" },\n \"menu\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": { \"type\": \"string\" },\n \"url\": { \"type\": \"string\", \"format\": \"uri\" }\n },\n \"required\": [\"label\"],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\"title\"],\n \"additionalProperties\": false\n },\n \"externalSystem\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": { \"type\": \"string\" },\n \"summary\": { \"type\": \"string\" },\n \"url\": { \"type\": \"string\", \"format\": \"uri\" }\n },\n \"required\": [\"name\"],\n \"additionalProperties\": false\n },\n \"next_step\": { \"$ref\": \"#/definitions/flowStep\" },\n \"next_steps\": {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/flowStep\" }\n }\n },\n \"required\": [\"id\", \"title\"],\n \"additionalProperties\": false\n }\n }\n },\n \"required\": [\"steps\"],\n \"additionalProperties\": true,\n \"definitions\": {\n \"flowStep\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"anyOf\": [{ \"type\": \"string\" }, { \"type\": \"number\" }]\n },\n \"condition\": { \"type\": \"string\" }\n },\n \"required\": [\"id\"],\n \"additionalProperties\": false\n }\n }\n}\n\n```\n\n## Guidelines for Good Flows:\n\n1. **Start with a trigger**: What initiates this flow? (user action, system event, scheduled task)\n2. **Include decision points**: Use `next_steps` (plural) for branching logic\n3. **Handle failures**: Always include error/failure paths where relevant\n4. **End clearly**: Have definitive end states\n5. **Use descriptive IDs**: Make step IDs self-documenting (e.g., \"payment_processed\" not \"step_3\")\n6. **Add transition labels**: Explain why/when each transition occurs\n7. **Keep it business-focused**: Focus on business logic, not technical implementation\n\n## Example Patterns:\n\n### Sequential Flow:\n```yaml\n- id: \"step_1\"\n title: \"Start Process\"\n next_step: \"step_2\"\n```\n\n### Branching Flow:\n```yaml\n- id: \"decision_point\"\n title: \"Check Condition\"\n message:\n id: ConditionChecked\n version: 1.0.0\n next_steps:\n - id: \"success_path\"\n label: \"Condition met\"\n - id: \"failure_path\"\n label: \"Condition not met\"\n```\n\n### Convergence:\n```yaml\n- id: \"final_step\"\n title: \"Process Complete\"\n message:\n id: ProcessCompleted\n version: 1.0.0\n```\n\n## Common Business Flows to Consider:\n\n- **Payment flows**: Include authorization, processing, success/failure handling\n- **User registration**: Validation, account creation, verification, welcome\n- **Order fulfillment**: Order placement, inventory check, shipping, delivery\n- **Support tickets**: Creation, assignment, resolution, feedback\n- **Subscription management**: Sign-up, renewal, cancellation, reactivation\n- **Content publishing**: Draft, review, approval, publication\n- **Refund processing**: Request, validation, approval, execution\n\n## Output Requirements:\n\n1. Generate a complete, valid markdown file\n2. Include realistic version numbers for messages\n3. Create logical, business-appropriate step sequences\n4. Ensure all paths eventually terminate\n5. Use proper YAML formatting in the frontmatter\n6. Include the `` component at the end\n7. Make IDs consistent and meaningful\n8. Add helpful transition labels for clarity\n\nNow, when given a business process description, create a comprehensive flow following these guidelines.";
//# sourceMappingURL=flows.d.ts.map