Automation library · Content

Automated tweet generator & publisher with OpenAI and Discord

Started by an event in a connected app, and works across Discord, Google Sheets, Notion and X. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 33 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

33 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 2Model 12Logic 8Service 11

The steps in the order they run, from what starts it.

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3Get_Brand_BriefTool WorkflowModel
  4. 4Get_Content_FedbackTool WorkflowModel
  5. 5Structured Output ParserOutput Parser StructuredModel
  6. 6When clicking ‘Test workflow’Manual triggerStarts it
  7. 7OpenAI Chat Model1Lm Chat Open AiModel
  8. 8Simple Memory1Memory Buffer WindowModel
  9. 9Check HistoryGoogle Sheets ToolService
  10. 10Check ExamplesGoogle Sheets ToolService
  11. 11When Executed by Another WorkflowExecute Workflow triggerStarts it
  12. 12Get brand briefExecute WorkflowLogic
  13. 13OpenAI Chat Model2Lm Chat Open AiModel
  14. 14AI Content creatorAgentModel
  15. 15Idea creatorChain LlmModel
  16. 16Get BriefExecute WorkflowLogic
  17. 17RewriterAgentModel
  18. 18NotionNotionService
  19. 19OpenAIOpen AiModel
  20. 20Edit FieldsSetLogic
  21. 21Send post for approvalDiscordService
  22. 22AggregateAggregateLogic
  23. 23Edit Fields2SetLogic
  24. 24If2IfLogic
  25. 25Edit Fields1SetLogic
  26. 26Post on XTwitterService
  27. 27Try Again DiscordService
  28. 28Add post to examplesGoogle SheetsService
  29. 29If1IfLogic
  30. 30Update historyGoogle SheetsService
  31. 31Confirm of next tryDiscordService
  32. 32End of workDiscordService
  33. 33Discord confirmDiscordService

How it's built

Starts on
An event in a connected app
Steps
33, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Discord, Google Sheets, Notion, X
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Discord, Google Sheets, Notion and X accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 33 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 33 steps before you point it at anything that matters.