Skip to main content

Scheduled AI Scenarios πŸ•’

Scheduled Scenarios are time-driven autonomous workflows that execute periodic analytics and catalog health checks on a schedule defined by you. Whether you need a daily morning briefing before your team begins work or a weekly audit of aging inventory, WooPilot AI runs the scenario in the background and delivers actionable insights directly to your Telegram chat.

βš™οΈ Flexible Scheduling Engine

Inside the Telegram Mini App (App β†’\to WooAuto β†’\to Scenarios), you can configure two distinct scheduling modes:

1. Exact Time Mode

Specify one or more exact hours during the day and choose the active days of the week:
  • Time Points: e.g. 09:00, 14:00, 19:00 (up to 24 time points).
  • Active Days: Select any combination (e.g. Mon, Tue, Wed, Thu, Fri).
  • Timezone Aware: Automatically respects your local WooCommerce store timezone (e.g. America/New_York, Europe/London, Europe/Kiev).

2. Interval Mode

Run scenarios on a recurring cycle with a defined active working window:
  • Interval Step: Every 30 min, 1 hour, 2 hours, 4 hours, 6 hours, or 12 hours.
  • Active Window: Active from 09:00 to 21:00 (silencing notifications overnight).
  • Active Days: e.g. Mon–Sun or business days only.

πŸ’¬ Example Scenario Recipes

1. Daily Morning Revenue Briefing

  • Schedule: Exact Time: 09:00 | Days: Mon–Sun

2. Friday Inventory & Stale Stock Audit

  • Schedule: Exact Time: 18:00 | Days: Fri

3. Periodic Abandoned Cart Scan

  • Schedule: Interval: Every 3 hours | Active: 09:00 – 21:00 | Days: Mon–Sun

⚑ Precision Architecture: Redis ZSET Scheduler

To guarantee sub-minute timing accuracy without running heavy database polling loops:
  • Next-Tick Recalculation: Cloud Core stores strictly ONE next execution timestamp per scenario in a Redis Sorted Set (ZSET).
  • Zero Missed Runs: If the server is restarted during redeployment, a self-healing bootstrap immediately rehydrates all future timestamps from PostgreSQL.