Automation library · Content

Generate AI media with ComfyUI: Images

Started by an event in a connected app, and works across Discord. 34 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large

34 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
3Loops or waits
1Service it connects to

The flow

Starts it 2Logic 20Service 12

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

  1. 1When Executed by Another WorkflowExecute Workflow triggerStarts it
  2. 2AggregateAggregateLogic
  3. 3When clicking ‘Test workflow’Manual triggerStarts it
  4. 4Connection ConfigSetLogic
  5. 5Discord AlertDiscordService
  6. 6Client IDCryptoService
  7. 7Trigger LOCAL WorkflowHttp RequestService
  8. 8Connection Config DuplicateSetLogic
  9. 9HTTP RequestHttp RequestService
  10. 10Fail TriggerCodeLogic
  11. 11Wait For Test Type SelectWaitLogic
  12. 12IfIfLogic
  13. 13Fail Get HistoryCodeLogic
  14. 14MergeMergeLogic
  15. 15If Img2ImgIfLogic
  16. 16Get Generated ImageHttp RequestService
  17. 17WaitWaitLogic
  18. 18Edit FieldsSetLogic
  19. 19Wait1WaitLogic
  20. 20Read API Exported Txt2Img ComfyUI Workflow from DiskRead Write FileService
  21. 21Return The Output JSON InsteadSetLogic
  22. 22Convert to FileConvert To FileService
  23. 23Upload Attachments LOCALHttp RequestService
  24. 24Extract Txt2Img Comfy WorkflowExtract From FileService
  25. 25Fallback Txt2Img SDXL TurboSetLogic
  26. 26Write to error logRead Write FileService
  27. 27Read API Exported Img2Img ComfyUI Workflow from DiskRead Write FileService
  28. 28Fail UploadCodeLogic
  29. 29Edit Txt2Img InputsSetLogic
  30. 30Extract Img2Img Comfy WorkflowExtract From FileService
  31. 31Fallback Img2Img SDXL TurboSetLogic
  32. 32Link This To Error HandlingNo OpLogic
  33. 33🎨🏠 Run local ComfyUI workflowExecute WorkflowLogic
  34. 34Edit Img2Img InputsSetLogic

How it's built

Starts on
An event in a connected app
Steps
34, with 2 branches, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Discord
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Discord account. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 34 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 34 steps before you point it at anything that matters.