Automation library · Content

Multi-functional Discord bot: Llama AI, image generation

Started by an event in a connected app, and works across Discord. It puts a local model behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 5 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: a local modelRetrieval

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

The flow

Starts it 1Model 10Logic 10Service 9

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

  1. 1Window Buffer MemoryMemory Buffer WindowModel
  2. 2n8n TriggerN8n triggerStarts it
  3. 3SearchTool Serp ApiModel
  4. 4WikipediaTool WikipediaModel
  5. 5Window Buffer Memory1Memory Buffer WindowModel
  6. 6Search3Tool Serp ApiModel
  7. 7Wikipedia3Tool WikipediaModel
  8. 8Ollama Chat ModelLm Chat OllamaModel
  9. 9Ollama Chat Model1Lm Chat OllamaModel
  10. 10General AgentAgentModel
  11. 11RecieverDiscordService
  12. 12Image PrompterAgentModel
  13. 13DiscordDiscordService
  14. 14Users messageIfLogic
  15. 15Google Image GeneratorHttp RequestService
  16. 16WaitWaitLogic
  17. 17Letters OR VoiceIfLogic
  18. 18Wait2WaitLogic
  19. 19CodeCodeLogic
  20. 20Shorting VoiceIfLogic
  21. 21Discord2DiscordService
  22. 22Fetch Audio from URLHttp RequestService
  23. 23Image TypeIfLogic
  24. 24Wait3WaitLogic
  25. 25GROQ Audio To TextHttp RequestService
  26. 26Fetch Image from Proxy URLHttp RequestService
  27. 27Creating Or AnalyzingIfLogic
  28. 28Convert Binary to Base64CodeLogic
  29. 29Groq Image To TextHttp RequestService
  30. 30Discord3DiscordService

How it's built

Starts on
An event in a connected app
Steps
30, with 5 branches, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Discord
Model
a local model
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 account, and a key for a local model. 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 a local model. 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 30 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 30 steps before you point it at anything that matters.