Quick overview
This manual workflow searches the web with Tavily for a chosen technical topic, analyzes the results with an Ollama LLM, generates a 150–250 word LinkedIn post with references, formats it as HTML, and sends the final post to a Telegram chat.
How it works
- Starts when you manually execute the workflow.
- Defines the target topic and maximum number of articles to fetch.
- Queries the Tavily Search API for recent results about the topic and extracts each result’s title and content.
- Uses an Ollama chat model to review the gathered snippets and pick an interesting, technically meaningful angle to write about.
- Uses an Ollama-powered agent to draft a 150–250 word technical LinkedIn post with one practical takeaway and relevant reference links.
- Converts the generated post into HTML, wraps it in a simple HTML template, and sends it as a rich message to Telegram.
Setup
- Add your Tavily API key to the HTTP request Authorization header.
- Configure an Ollama connection in n8n and ensure the selected model (gpt-oss:20b) is available on your Ollama server.
- Add Telegram bot credentials, set your target Telegram chat ID, and update the topic/maxArticles values to match what you want to generate posts about.
Requirements
- Ollama, Travily API key, Telegram Credentials
Customization
- Feel free to change the format of the post generated
Additional info
Reach out for changes!