A piece on any topic: research, draft, review and publication

The scenario researches the topic, writes the piece, runs it through an internal review, rewrites on feedback, and publishes the approved text as a page in your knowledge base.

  • The roles are split: research, writing and review are separate steps
  • The text is rewritten on feedback instead of shipping on the first pass
  • The rewrite loop has a breaker — the scenario never spins forever
  • Publishing failures are recorded in TheHive 5 instead of vanishing
n8n FormHTTP Request Tool

How it works

To connect TheHive 5 and Web Form, you don't need a developer: a ready-made scenario links them in minutes.

  1. Starts when: When Form Submitted
  2. Then: Initialize State Variables
  3. Then: Resolve Tavily Configuration
  4. Then: Researcher Agent
  5. Then: Verify Research Output
  6. Then: Writer Agent
  7. Then: Verify Draft Content
  8. Then: Break on Writer Review
  9. Check: Route for Circuit Breaker Status
  10. If yes: Construct Notion Page
  11. Then: Generate Notion Page
  12. Check: Combine Page ID with State
  13. Then: Extract Combined State
  14. Then: Prepare Notion Block Batches
  15. Check: Process in Batch Loop
  16. Then: Append Blocks to Notion
  17. Then: Verify Additional Batches
  18. Check: Check Wait Requirement
  19. If yes: Wait 350 Seconds
  20. Then: Handle Batch Errors
  21. Then: Finalize Publishing Process
  22. Then: Construct Failure Alert
  23. Check: Check for Failures
  24. If yes: Add Warning Notification
  25. If no: Reviewer Agent
  26. Then: Verify Review Output
  27. Check: Check Approval Status
  28. Then: Perform Tavily Search
  29. Then: Set State Fields
  30. Starts when: When Error Occurs
  31. Then: Create Error Log
  32. Then: Log to Notion on Error
  33. Then: OpenAI GPT-4 Agent 1
  34. Then: OpenAI GPT-4 Agent 2
  35. Then: OpenAI GPT-4 Agent 3
  36. Then: Set Configuration References

You can launch this TheHive 5 + Web Form integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.