Scheduling
AI Context Items integrate with the Scheduler module to support scheduled publishing and unpublishing of context items.
How it works
When editing a context item, the Scheduling options section appears in the sidebar. You can set:
- Publish on -- a future date/time when the item should be published
- Unpublish on -- a future date/time when the item should be unpublished
When cron runs and the scheduled time has passed, Scheduler automatically changes the item's moderation state.
Requirements
Scheduling requires:
- Scheduler module
- Scheduler Content Moderation Integration module
Both are required dependencies of the AI Context module.
Configuration
Scheduling options for context items are configured at
/admin/ai/context/settings/items. This uses the bundle-level Scheduler
settings to control:
- Whether publishing scheduling is enabled
- Whether unpublishing scheduling is enabled
- Default scheduling behavior
Permissions
The Schedule publishing of AI Context Items permission controls who can set scheduled dates. The View scheduled AI Context Item permission controls who can see items that are scheduled but not yet published.
Use cases
- Seasonal content: Schedule product-specific context to publish at the start of a sales season and unpublish when it ends
- Policy updates: Prepare updated compliance context in advance and schedule it to go live on the effective date
- Temporary context: Publish event-related context for a limited time window