Can you help ChatGPT get an ‘A’ in organic chemistry? Teaching effective prompting of large language models for reaction prediction

03 December 2025, Version 1
This content is an early or alternative research output and has not been peer-reviewed by Cambridge University Press at the time of posting.

Abstract

Generative artificial intelligence (AI) tools such as large language models (LLMs) have become ubiquitous in everyday life, and are also increasingly finding applications in the chemical sciences. Although LLMs have achieved impressive performance on many chemistry tasks, optimal performance requires proper use, including appropriate prompting techniques. However, chemistry students are not generally taught strategies for effective LLM usage. Here we report an activity that introduces organic chemistry students to the use of LLMs like ChatGPT for predicting the outcome of chemical reactions, focusing on the types of alkene addition reactions taught in introductory organic chemistry courses. This activity exposes students to molecular representations, digitization of chemical reactions, best practices for machine learning, and generalizable LLM prompting strategies, namely the 5S approach and in-context learning. We tested this activity with chemistry students in the USA and in Austria and evaluated the activity through anonymous pre- and post-lab surveys. Survey data revealed that students felt that they achieved their learning goals and that they found the activity enjoyable. As chemistry students will inevitably interact with LLMs in their future careers, it is important to teach best practices for effective and critical use of these tools in the context of chemistry.

Keywords

Undergraduate
Organic Chemistry
Computer-Based Learning
Large-Language Models
Generative AI
Prompting
Alkene Reactions

Supplementary materials

Title
Description
Actions
Title
Supporting Information for Instructors - Student Prompt Examples
Description
Here, instructors can find examples of what student prompts and GenAI outputs might look like.
Actions
Title
Group Sharing Template
Description
A file for instructors with a set of bromination reactions as answer key for the activity. Also, a group sharing template for cooperative work.
Actions
Title
Student Handout
Description
The student handout for the activity.
Actions
Title
Survey data
Description
Survey raw data.
Actions

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting and Discussion Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.