Prompt Development

Teaching AI How to Screen Abstracts

Using AI for systematic review screening is not as simple as asking a model to decide whether a study should be included or excluded. The way the task is written — the prompt — changes how the model behaves.

In this prototype, prompt development became part of the research method. We tested different ways of asking AI to screen abstracts and learned that the model’s decisions depended heavily on how we framed the task.

The prompt development process moved through three stages:

  1. First, we asked AI to act like a strict systematic review screener.

  2. Then, we reframed AI as a screening assistant.

  3. Finally, we expanded the prompt so AI could better recognize studies that were relevant but described in indirect or broader language.

The final prompt from Phase 1 (studies from 2008-2017) was then used in Phase 2 to screen newer studies from 2018–2025.

Step 1: Starting with Strict Eligibility Screening

Step 2: Reframing AI as a Screening Assistant

Step 3: Expanding What Counts as Potentially Relevant

Beginner-Friendly Workflow

This project used Python and the OpenAI API to apply screening prompts to study abstracts. For readers who are not familiar with Python, the process can be understood like a structured workflow: a spreadsheet of abstracts goes into the system, the AI applies the screening prompt to each abstract, and a new spreadsheet comes out with AI screening decisions.

The purpose of using Python was not to make the review more technical for its own sake. It allowed the team to apply the same prompt consistently across many abstracts, save the AI’s decisions in a structured format, and compare those decisions with human screening decisions.

The documented implementation used GPT, 4o, GPT 5.2, GPT 5 mini, and GPT 5 nano as model options for testing AI-assisted abstract screening. The same workflow can also be adapted to other models by replacing the model name in the Python code. The full prompts, API calls, file names, and model settings are available in the project’s Python notebooks and GitHub materials. The prompt examples shown on this website are simplified examples for explanation, not the full prompts used in the analysis.

  1. Start with an abstract file

The review team begins with a spreadsheet or CSV file. Each row represents one study record. The file usually includes information such as the study ID, title, abstract, publication year, and other available metadata.

In plain language, this is the file that tells the AI:
“Here are the studies we want you to screen.”

2. Prepare the human screening file

A separate file contains the human reviewers’ screening decisions. These decisions are important because they serve as the comparison point for evaluating AI performance.

In plain language, this file tells us:
“Here is how trained human reviewers screened these studies.”

3. Set up the Python workspace

Python is the workspace used to run the process. The workflow can be run in tools such as Jupyter Notebook, Google Colab, or VS Code.

For nontechnical users, this can be understood as the place where the instructions are organized and run. Python reads the abstract file, sends each abstract to the AI model, receives the AI decision, and saves the result.

4. Connect Python to the OpenAI API

The OpenAI API is the connection between Python and the AI model. An API key allows Python to send the abstract and prompt to the selected model.

In plain language, the API key works like a secure access pass. It allows the Python notebook to communicate with the AI model.

5. Choose the model to test

The model is the AI system that reads the prompt and abstracts. In this project, the documented workflow used GPT, 4o, GPT 5.2, GPT 5 mini, and GPT 5 nano as model options for testing.

Different models can be compared to see whether they produce different screening performance. The model name can be changed directly in the Python code.

6. Send each abstract with the screening prompt

Python goes through the abstract file one row at a time. For each study, it combines the screening prompt with the study title and abstract, then sends that information to the AI model.

In plain language, this step asks the AI:
“Based on this prompt, should this abstract be included for human review or excluded?”

7. Save the AI screening decisions

After the AI screens each abstract, Python saves the output into a new file. This file may include the AI’s include/exclude decision and a short explanation.

This creates a structured AI screening dataset that can be reviewed, audited, and compared with human screening.

8. Merge AI decisions with human decisions

The AI screening file is then merged with the human screening file using a shared study ID. This allows the team to compare AI and human decisions for each study.

In plain language, this step asks:
“Where did AI agree with humans, and where did it disagree?”

9.Calculate performance metrics

Python then calculates performance metrics such as recall, precision, specificity, accuracy, F1 score, and AUC. These metrics help the team understand whether the AI prompt is useful for screening.

For this project, recall was especially important because the goal of abstract screening is to avoid missing studies that may be relevant. A high-recall prompt helps identify more studies that human reviewers may want to examine further.

10.Revise and test again

If the AI misses too many relevant studies, the prompt can be revised and tested again. This is why prompt development is part of the method. The team can change the screening instructions, rerun the workflow, and compare whether the new prompt performs better.

In this prototype, this process helped move the prompt from strict eligibility screening toward a more useful triage approach for human review.