Automation library · Content

Post witty daily tweets with Groq and NewsAPI

Started by a clock, and works across X. It puts Groq behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 15 steps: a working afternoon to understand properly.

MediumCalls a model: GroqRetrieval

15 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 5Logic 6Service 3

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Context WindowMemory Buffer WindowModel
  3. 3Rank The TopicsLm Chat GroqModel
  4. 4Create TweetLm Chat GroqModel
  5. 5Check the newsHttp RequestService
  6. 6Check Google Trends (geo=IN)Http RequestService
  7. 7Smartly Pick the TopicAgentModel
  8. 8Produce an Engaging TweetChain LlmModel
  9. 9Normalize News InputCodeLogic
  10. 10Convert Data TypeXmlLogic
  11. 11PublishTwitterService
  12. 12MergeMergeLogic
  13. 13Normalize Trends InputCodeLogic
  14. 14Tweet publishedNo OpLogic
  15. 15Trim Data ItemsCodeLogic

How it's built

Starts on
A clock
Steps
15
Size
Medium: a working afternoon
Connects to
X
Model
Groq
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 X account, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Groq. 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?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

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 15 steps before you point it at anything that matters.