AI Gantt Chart Prompt: Turn a Task List into a Chart

Paste a task list and get Gantt-ready output in the format you choose, either a table for a spreadsheet or scheduling tool, or Mermaid syntax that renders as a chart.

Copy this prompt

Act as a project scheduler. Convert the task list below into data I can paste straight into a Gantt chart tool.

Project: [name]
Project start date: [date]
Working calendar: [for example: Monday to Friday, list any holidays]
Tasks: [paste tasks with: name, duration in working days, predecessors, owner, and phase or group if known]
Milestones: [list, with dates if fixed]
Output format: [table for a spreadsheet, or Mermaid gantt syntax]

Do the following:
1. Before building anything, list problems in my data: missing durations, predecessors that do not exist, circular links, and tasks with no group.
2. Give each task a short ID. Calculate start and end dates from the project start date, the predecessors, and the working calendar. Skip weekends and the holidays I listed.
3. If I chose a table: output columns for ID, task, group, owner, duration, start date, end date, predecessors, and milestone (yes or no). Use ISO dates (YYYY-MM-DD) and no merged cells.
4. If I chose Mermaid: output one valid gantt code block with a title, dateFormat YYYY-MM-DD, weekends excluded, a section per group, and milestones marked as milestones. Use "after" references for dependencies.
5. After the output, state the calculated project end date and list any date you were unsure about.

Do not change my durations or add tasks. If a task has no duration or predecessor, leave it out of the chart and list it under problems. Output only one format.

Why this prompt is useful

A Gantt chart is only as correct as the data behind it, so this prompt checks the task list first and calculates dates from dependencies and a working calendar. It also fixes the output format tightly, with ISO dates and one code block, because loose formatting is what breaks a paste into a real tool.

Use it when: you have a task list with durations and predecessors and want a Gantt chart without building it row by row.

How this prompt works

A text-based AI assistant is better at producing the data for a Gantt chart than at drawing one. This prompt asks for the data in a shape a tool accepts, and you let the tool do the drawing. It is one reason Gantt charts do not require expensive software.

Step 1 is a data check. A predecessor that points to a task that does not exist will either break the chart or silently float a task to the project start. You want to hear about it before the dates are calculated.

Step 2 defines how dates are derived: from the start date, the dependency chain, and the working calendar. Without the calendar line, the AI may count weekends as working time and give you a finish date that is weeks too early.

Steps 3 and 4 pin the format. ISO dates import cleanly into spreadsheets and scheduling tools in any region. No merged cells means every row stands alone. For Mermaid, the prompt names the elements that matter: sections, excluded weekends, milestone markers, and "after" references, which keep the dependency logic in the chart so it still moves when you edit a duration.

Step 5 asks for the end date and any doubts.

The final rule protects your plan. The AI converts and calculates. It does not get to shorten a task or add one because the chart would look more complete.

How to adapt it

  • Other formats: ask for CSV with the column names your tool's import expects, or for PlantUML gantt syntax.
  • Status view: add a percent complete column and a status date, and ask for tasks that should have started and have not.
  • Executive view: ask for a second chart with one bar per phase and milestones only.
  • Critical path: ask the AI to mark critical tasks with the Mermaid "crit" tag after you have confirmed the logic.

What to do with the output

Paste it into your tool and look at it. Mermaid syntax renders in many documentation, wiki, and diagram tools, and a table drops into any spreadsheet. If the chart fails to render, paste the error back and ask for a corrected block. Spot-check three or four dates by counting working days yourself, especially across a holiday. Then review the chart with the task owners before you share it more widely.

Frequently Asked Questions

Can ChatGPT, Claude, or Gemini make a Gantt chart?

They can reliably produce the data and the chart code, which a tool then renders. Some assistants can also show a rendered chart in the chat, depending on the product and plan. Asking for a table or Mermaid syntax works in all of them.

What is Mermaid gantt syntax?

Mermaid is a plain-text diagram language. You write tasks, dates, and dependencies as text, and a compatible tool turns the text into a chart. Because the chart is text, you can store it with your project documents and edit it without special software.

How many tasks can I put in an AI-generated Gantt chart?

Up to about 40 tasks works well. Beyond that, date arithmetic errors become more likely and the chart gets hard to read. For larger plans, chart one phase at a time or use a scheduling tool for the dates.