Send daily TMDB movie recommendations to a Telegram channel with OpenAI
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (every day at 12:00). Along the way it connects Telegram and OpenAI. It also calls api.themoviedb.org over HTTP.
How it runs
Trigger: On a schedule (every day at 12:00).
- Workflow Settings (Edit Fields (Set)): sets 9 fields: min_rating, min_votes, min_release_date…
- Fetch Movies from TMDB (HTTP Request): calls api.themoviedb.org
- Split Movies into Items (Split Out): splits a list into separate items
- Filter Valid Movies (Code): runs custom JavaScript code
- Score Movie Candidates (Code): runs custom JavaScript code
- Select Best Movie (Code): runs custom JavaScript code
- Generate Telegram Recommendation (OpenAI): uses OpenAI
- Validate AI Recommendation (Code): runs custom JavaScript code
- Prepare Telegram Post (Code): runs custom JavaScript code
- Send a photo message (Telegram): send photo
…plus 1 more step. See the full node list below.
Services it uses
Other Telegram + OpenAI templates (807)
HTTP calls to: api.themoviedb.org
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow finds a high-rated movie from TMDB, selects one at random, uses OpenAI to generate a short recommendation, and automatically posts the movie poster with the generated caption to a Telegram channel. How it works 1. Runs on a…