This guide explains how to enable and configure Smart dates, which is part of the Helper feature of Discourse AI plugin.
Required user level: Administrator
Smart dates allow the conversion of human-typed times and dates to Discourse-compatible, timezone-friendly dates.
Note: In this demonstration, there was already written content in the composer.
Features
- Detect Smart dates from text containing time, date and timezone
- Ability to confirm or discard changes
- Option to retry detection
Enabling Smart dates
Prerequisites
You must configure at least one Large Language Model (LLM) from a provider.
To get started you can configure them through the Discourse AI - Large Language Model (LLM) settings page.
- OpenAI
- Anthropic
- Azure OpenAI
- AWS Bedrock with Anthropic access
- HuggingFace Endpoints with Llama2-like model
- Self-Hosting an OpenSource LLM
- Google Gemini
- Cohere
Configuration
- Go to Admin โ Plugins โ Discourse AI โ Features โ Helper
- Enable the Helper feature by checking
AI helper enabled - Go to
AI helper enabled featuresand make surecontext_menuis selected so the AI button shows up in the composer - Optionally, configure which LLM to use for Smart dates via the
AI helper smart dates agentsetting. By default, a built-in agent is used, and it will use the siteโs default LLM. - We recommend setting
Composer AI helper allowed groupsto specific user groups so they can use Helperโs composer features including Smart dates
Technical FAQs
Why is Smart dates not working properly?
- This can depend on numerous factors including the LLM used, overall text context, and the way the time and dates are written out so the LLM can comprehend and convert. LLMs can make mistakes so itโs important to double-check the output.