AI integration
The Gantt chart ships with an AI feature that lets users interact with project data using natural language through a chat panel. Users can filter tasks, update schedules, toggle critical paths, and more — all using conversational commands.
The Gantt AI feature builds on top of the Scheduler AI feature. Please read both of these guides first:
- Grid AI integration guide — covers setup, backend configuration, API plugins, custom tools, voice features, user settings, and more
- Scheduler AI integration guide — covers event tools and the
defaultRangeconfig
All configurations described in those guides apply to the Gantt as well.
Minimum configuration
import { Gantt, OpenAIPlugin } from '@bryntum/gantt';
const gantt = new Gantt({
features : {
ai : {
promptUrl : '/api/ai/prompt',
apiPlugin : OpenAIPlugin,
model : 'gpt-4-1',
chatButton : true
}
}
});
Default date range
Like the Scheduler, the Gantt has a defaultRange config. For Gantt, it defaults to 'all':
features : {
ai : {
defaultRange : 'all' // 'timeline' | 'in-view' | 'all'
}
}
Additional tools
In addition to the Grid tools and Scheduler tools, the Gantt adds project-specific tools:
| Tool | Description |
|---|---|
getChildren |
Retrieves child tasks for a parent task |
criticalPath |
Enables/disables the CriticalPaths feature |
tableSections |
Changes visible table columns |
The base tools (changeTheme, askUser, createPlan, completePlanSteps, undo, endVoiceConversation) are also available. See the Grid AI guide for details on planning and base tools.
API docs
Demo
- AI Gantt — Gantt chart with AI assistant