v7.3.0
SupportExamplesFree Trial

AI integration

The AI feature and all its related components are marked as experimental and are subject to change.

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:

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

Contents