LEAP News

LEAP-GPT: A new AI assistant for LEAP 24 Likes

By Charlie Heaps on 6/12/2025
LEAP user Matthew Davis from the University of Alberta has developed a new AI-based energy modeling assistant for Chat-GPT called LEAP-GPT that is designed to support scripting and automation of LEAP models.

The assistant:
* Provides general purpose help with using LEAP.
* Guides users through using the LEAP API, including those with no prior scripting experience.
* Generates code for automating LEAP tasks, including providing instructions for how to set up from scratch.
* Follows best practices for LEAP API branch access, filters, data inputs, results extraction, and model calculation.
* Helps navigate and apply API functions with complete argument structures.
* Supports error handling and scenario/region management through scripting.

To use the assistant:
* Go to https://chatgpt.com
* Log in or create an OpenAI account.
* In the GPTs tab (Explore GPTs), search for “LEAP Energy Modeling Assistant”
* Start a conversation and describe your modeling task.

Some example common use cases include:
* General help with using LEAP.
* Extracting results data.
* Building branch structures and inputting data.
* Sensitivity analysis.
* Running batches of scenarios and various model workflows requiring iteration.
* Model validation and verification.

While the assistant is still being improved, it is already functional and can support real-world workflows.

Give it a try. Matt welcomes your feedback!

leapgpt.jpg