Describe a business process to Claude AI and it generates a fully formatted SOP with numbered steps, roles and responsibilities, checklists, and edge cases. The SOP is automatically created as a Notion page and a summary is posted to Slack.
1. In your automation platform, create a workflow triggered by a Slack slash command (e.g., /generate-sop) or a webhook. The trigger should capture the process description text from the user.
2. Add an HTTP Request node to call the Claude API (POST https://api.anthropic.com/v1/messages). Set headers: x-api-key to your Anthropic API key, anthropic-version to 2023-06-01, content-type to application/json.
3. Set the model to "claude-sonnet-4-20250514" and max_tokens to 1024. Craft a detailed prompt asking Claude to generate an SOP document with: title, purpose statement, scope, roles/responsibilities, numbered step-by-step procedure, checklist items for each step, edge cases and exceptions, and revision history placeholder.
4. Add a Notion node to create a new page in your SOPs database. Map the Claude response to the page title and content body. Use Notion's block format for headings, numbered lists, and checkboxes.
5. Add a Slack node to post a confirmation back to the requester with a link to the new Notion page and a brief summary of the generated SOP.
6. Test by sending the slash command with a simple process description (e.g., "client onboarding for new accounts"). Verify the Notion page is created with proper formatting.
7. Refine the prompt to match your company's SOP template. Include an example of your preferred format in the prompt for consistent output.
Troubleshooting
**Claude output does not match your SOP template:** Include a concrete example of your desired SOP format in the prompt. Specify exact heading levels, numbering style, and section order. The more specific your template instructions, the better the output.
**Notion page formatting is plain text instead of rich blocks:** Notion's API requires specific block types (heading_2, numbered_list_item, to_do, etc.). Parse Claude's markdown output and convert it to Notion block format in a Function node before creating the page.
**Slack slash command returns timeout error:** Slack requires a response within 3 seconds for slash commands. Send an immediate acknowledgment, then process the SOP generation asynchronously. Post the result as a follow-up message once Claude responds.
**Generated SOPs are too generic:** Add context about your company, industry, and standards in the prompt. Specify the target audience (e.g., "new team members with no prior context"). Ask Claude to include specific tools and systems your team uses.