Quick Overview
This workflow runs every morning in Asia/Dhaka, pulls FIFA World Cup 2026 fixtures, standings, teams, and stadium data from worldcup26.ir, uses OpenAI to generate a compact next-day briefing with Bangladesh-local kickoff times, and posts the report to a Slack channel.
How it works
- Runs daily at 07:00 (Asia/Dhaka) on a schedule trigger.
- Calculates yesterday and tomorrow’s dates in Bangladesh time to define the reporting window.
- Fetches games, group standings, team details, and stadium/host city information from the worldcup26.ir HTTP endpoints.
- Merges the feeds, converts venue-local kickoff times to Asia/Dhaka, selects tomorrow’s fixtures (plus recent results and relevant standings), and builds a mobile-friendly briefing prompt.
- Sends the prompt to an OpenAI chat model and generates a Slack-formatted matchday briefing.
- Cleans and normalizes the generated text (or adds a fallback warning if empty) and posts it to the selected Slack channel with mrkdwn enabled.
Setup
- Add an OpenAI API credential for the OpenAI chat model used by the AI Agent.
- Add a Slack OAuth2 credential and select the target Slack channel for the daily post.
- Update the schedule cron expression if you want a different send time than 07:00 Asia/Dhaka.