AstraZeneca designs molecules with chat-driven AI agents
AstraZeneca's Molecular AI group built ChatInvent, a chat application whose LLM agents run the company's generative chemistry and retrosynthesis tools for scientists who don't configure them by hand.
AstraZenecaUnited Kingdom and SwedenPharmaceuticals and biotechIn productionWho built it Built in-house (Chalmers University of Technology)Human oversight Assists peopleKind of solution Scientific discovery and designScenario Agentic assistant for molecular design and synthesis planningBusiness function Research and developmentOrganization EnterpriseAI types Generative AI, Agentic AI, Conversational AI, Machine learning
- Who built it
- Built in-house (Chalmers University of Technology)
- Human oversight
- Assists people
- Kind of solution
- Scientific discovery and design
- Scenario
- Agentic assistant for molecular design and synthesis planning
- Business function
- Research and development
- Organization
- Enterprise
- AI types
- Generative AI, Agentic AI, Conversational AI, Machine learning
tl;drChatInvent's agents called the right tools in 90% of 70 test questions at AstraZeneca.See the results
AstraZeneca’s Molecular AI group runs ChatInvent, a chat application whose AI agents operate the company’s molecular design and synthesis planning tools1.
Scientists ask in plain language for analogues of a compound, for scores on its properties, or for a route to make it. The system has been integrated into AstraZeneca’s discovery pipeline, and it grew from a proof-of-concept single agent into a multi-agent architecture with a graphical user interface1, 4.
In an evaluation published in September 2026, a language model judge aligned with five expert annotators scored 70 held-out test questions. ChatInvent called the right tools in 90% of them, and 43% of its answers were rated complete4.
Before the deployment
Drug discovery advances a molecule through the design-make-test-analyze (DMTA) cycle, and computational tools support every stage of it1.
Reaching those tools was the problem the Molecular AI group set out to solve:
- Expert setup. Using the tools of drug discovery requires expert knowledge and extensive training, such as preprocessing a biological target and preparing configuration files1.
- Multi-step workflows. An in-house design run moves from configuration files through database retrieval to the scoring and selection of compounds by predicted properties, and then to prioritization by synthetic viability1.
- No production precedent. Agentic systems such as Chemcrow and CoScientist had shown what was possible, while the literature lacked examples of real-world adoption in drug discovery1.
For routine tasks, a natural-language system had the potential to save a lot of time and free scientists to work on harder problems1.
What was built
ChatInvent turns a scientist’s prompt into a sequence of tool calls that resembles one loop of the DMTA cycle1. A supervisor agent, four sub-agents and the scientist divide the work:
- Supervisor agent. Routes each query to the most appropriate sub-agent, and breaks the request into a focused task description for it1.
- Design agent. Generates molecules with Mol2Mol and scores them with ReinventScoring and the Predictive Insight Platform1, 4.
- Synthesis agent. Predicts a synthesis plan with AiZynthFinder, and finds close analogs of a reference reaction with Precedent Finder1, 3.
- Utility agent. Validates SMILES strings and converts compound names or internal codes into structures1.
- Analyzer agent. Generates Python code that filters, counts and plots the result files the other agents produce1, 3.
- Scientists. Follow the agent’s reasoning in the interface, inspect the molecules it returns, and decide what to take forward1.
Alternatives considered
- LangChain over a bespoke framework. The team built directly on LangChain and customized its class templates, because a from-scratch implementation would carry a high maintenance overhead and slower onboarding of new functionality1.
- Structured Chat over ReAct. The ReAct agent was harder to prompt and submitted tool parameters in the wrong format, so the team switched to the Structured Chat agent, which was more consistent1.
- Multi-agent over single agent. A network of specialized agents lets each one work in a minimal context, which cuts token overhead, and it lets teams add agents of their own1.
Rollout
The first prototype, LangDMTA, was a single agent on on-premises language models with swappable interfaces, running GPT-3.5 Turbo, GPT-4 Turbo and then GPT-4o through Azure OpenAI in Foundry Models1. The team then rebuilt it as a multi-agent system in LangGraph and added the ChatInvent web application1. In May 2026, it demonstrated the system at the AAMAS conference in Paphos and released an open-source version that runs without internal AstraZeneca services3, 4.
Technology and architecture
The agents run on GPT-4o, reached through Azure OpenAI in Foundry Models behind swappable model interfaces, and conversational memory keeps the context of a session across turns1. Mol2Mol is a transformer model for molecular optimization that ships with REINVENT 4, AstraZeneca’s open-source generative design framework1, 2, 4.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | ChatInvent | Chat application and agentic system that scientists use to run design and synthesis tools by prompt | 1, 3, 4 |
| Chat interface | Chat and canvas interface | Chat box with file upload, a canvas for drawing molecules, and a live view of the agent’s reasoning | 1 |
| Language model | GPT-4o | Operates the supervisor and the sub-agents | 1, 3 |
| Agent orchestration | LangGraph | Runs the supervisor and the sub-agent graph | 1 |
| Framework or library | LangChain | Carries the tool logic and the Structured Chat agent of the first prototype | 1, 3 |
| Task agent | Design agent | Generates molecules with Mol2Mol and scores them with ReinventScoring and the Predictive Insight Platform | 1, 4 |
| Task agent | Synthesis agent | Predicts synthesis routes with AiZynthFinder and looks up reaction precedents with Precedent Finder | 1, 3 |
| Task agent | Analyzer agent | Writes and runs Python that filters, counts and plots the result files of the other agents | 1, 3 |
| Generative design model | Mol2Mol | Transformer model that generates analogues of a query molecule | 1, 2, 4 |
| Predictive model | AiZynthFinder | Predicts retrosynthetic routes by template-based Monte Carlo tree search | 3, 4 |
| Monitoring | LangFuse | Traces every agent run for step-by-step diagnosis and programmatic evaluation | 1 |
| Checker model | Gemini 3.1 Pro | Scores agent answers as an LLM judge aligned with expert annotators | 4 |
Data inputs
- Prompts and structures. Each request carries SMILES strings, compound names or internal compound codes, with the option to upload files or draw a molecule on the canvas1.
- Compound and property data. Agents retrieve compound data through in-house APIs and predicted property scores from the Predictive Insight Platform1.
- Reaction history. Precedent Finder mines reaction databases for literature precedents and similar transformations3, 4.
- Test questions. Evaluation runs on curated sets: 33 questions in the regression suite, 70 held-out judged questions, and 38 adversarial ones1, 4.
- Scientist feedback. Users like, dislike or comment on individual agent messages, and each entry is tied to its message and session1.
Integrations
- Predictive Insight Platform and Precedent Finder. Both expose robust APIs that the agents consume, which let the team build the agent framework rather than the chemistry tools1.
- In-house APIs. Agents fetch compound data and convert synonyms and internal codes into SMILES strings1.
- LangFuse. Agent executions and feedback entries are written to the tracing platform, which supports step-by-step diagnosis, debugging and programmatic evaluation1.
How one analogue request moves through the agents
A request for analogues of a named compound with a lower property value crosses three sub-agents before the supervisor answers1, 3.
Results
The evaluation of September 2026 scored ChatInvent on 70 held-out test questions, graded by a Gemini 3.1 Pro judge whose scores had been aligned with five expert researchers in AI for chemistry4.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Tool call correctness | Not disclosed | 90% | 70 held-out test questions across all tools and supported workflows | AstraZeneca and Chalmers researchers, pilot4 |
| Relevancy score | Not disclosed | 86% | 70 held-out test questions | AstraZeneca and Chalmers researchers, pilot4 |
| Answers rated complete | Not disclosed | 43% | 70 held-out test questions | AstraZeneca and Chalmers researchers, pilot4 |
- Tool call correctness. Compares the tools the agent called with the expected and accepted sequences written for each question1, 4.
- Relevancy. Scores whether the answer addresses the question that was asked4.
- Completeness. 43% of answers were rated complete and 39% partially complete. Across all 111 evaluated runs, only two failures originated in a tool itself4.
An earlier benchmark compared the two architectures on the same 33 questions, each asked three times1. The multi-agent system needed less response time and fewer tokens than the single agent, showed a higher rate of tool-call errors, and self-corrected to produce the correct final answers1.
The work also changed who can reach the tools. ChatInvent is integrated into AstraZeneca’s discovery pipeline for molecular design and synthesis planning, and an open-source version based entirely on open-source code has been released1, 4.
Lessons learned
The figures are the AstraZeneca team’s own, published in papers its engineers wrote with co-authors at Chalmers University of Technology1, 4. They come from curated questions: the evaluation set is deliberately small, and its 20 seed questions were written to span the documented capabilities of the system4.
Splitting one agent into a supervisor and sub-agents worked on the measures the team tracks. Tool selection was correct in 90% of the judged questions, and only two of 111 runs failed inside a tool4.
Correct tool use did not produce complete answers. Of the 63 questions whose tool-call sequence was fully correct, 33 still scored below complete, most often because the answer dropped the result file path returned by Mol2Mol, which places the defect in the supervisor’s output prompt4.
Infrastructure caused most of the remaining failures. Five runs ended when the orchestrator reached its recursion limit, and four were refused by the model provider’s content filter4. The team also found no strong evidence that the formality of a question affects the quality of the output4.
Refusal followed the stated intent of a request. Prompts that made a harmful purpose explicit were refused at the supervisor node without any tool call, while four requests for analogues of a controlled substance in neutral task language were processed without objection4. The authors conclude that surface-level intent filtering is easily circumvented by neutral phrasing and is not sufficient on its own for a deployed design agent4.
Three operating costs persist. The system struggles with long conversations in which memory from different sub-agents has to be passed around by the supervisor. Each change of language model required at least one week of prompt tuning, and occasional agent misbehavior remains a challenge when scaling to larger systems1.
The team argues that robust governance is needed to prevent accidental misuse of agents and to keep outputs validated, documented and reviewable1. AstraZeneca states that expert human review stays central to every AI-driven insight5.
Case study scorecard
Sources by publication date
- Organization 1
- Press, academic, and regulators 4
Build this solution yourself
Analysis
What you need
- Chemistry tools behind stable APIs. Reinvent, AiZynthFinder and the Predictive Insight Platform already exposed robust APIs that agents could consume, so check that your own tools can be driven without a user interface1.
- A regression suite over typical prompts. The 33 test questions, each asked three times, catch breakage when tool logic or prompts change, and mock tools keep those runs deterministic1.
- Expert annotations before you trust an LLM judge. Five experts produced 700 judgments, which set the judge’s alignment with the human majority vote at 0.86 after optimization4.
- Time for model migrations. Each language model upgrade took at least one week of prompt tuning and evaluation, so budget for it before you commit to a model1.
Reference architecture
Scientific discovery and design
A scientific discovery and design solution searches a space of candidate molecules, materials, layouts, or configurations with models that score each candidate far faster than the test that settles it.
- Ranking model
- Candidate generator (documented in this case study)
- Domain libraries (documented in this case study)
- Surrogate scorer
- Screening filters
- Run orchestration
- Elastic compute
- Training pipeline
- Design workspace
- Discovery platform (documented in this case study)
Others who built it
- NVIDIA: How NVIDIA designs GPU circuits with reinforcement learning. NVCell ports NVIDIA's standard cell library overnight on a single GPU, work that took 10 months.
- Google: Google lays out TPU chip blocks with reinforcement learning. AlphaChip placed 25 Trillium TPU blocks with 6.2% less wirelength than human experts.
- GSK: How GSK uses an agentic AI scientist in drug discovery. More than 1,000 GSK scientists use the AI scientist's literature layer daily, with an NPS of 63.
- Syensqo: Syensqo finds a new polymer in 18 months with AI screening. AI screening of 4 million molecules found Syensqo a new polymer in 18 months.
- General Motors: AI surrogates cut GM's drag analysis from weeks to minutes. GM designers now get drag estimates for new shapes in minutes instead of about two weeks.
- Insilico Medicine: Insilico's AI-designed lung fibrosis drug reaches Phase III. Rentosertib went from AI-picked target to drug candidate in about 18 months and is now in Phase III.
Cite this case study
Enterprise AI Case Studies. "AstraZeneca designs molecules with chat-driven AI agents." Updated Dec 1, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-089-agentic-molecular-design-astrazeneca/
@misc{csai-er-089,
author = {{Enterprise AI Case Studies}},
title = {{AstraZeneca designs molecules with chat-driven AI agents}},
year = {2026},
note = {Updated 2026-12-01},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-089-agentic-molecular-design-astrazeneca/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Democratising real-world drug discovery through agentic AI
Supporting excerpts (52)
been integrated into the discovery pipeline at AstraZeneca to aid in molecular design and synthesis
the system evolved from a proof-of-concept single agent into an extensible,
used in drug discovery requires expert knowledge and extensive
have the potential to save a lot of time, freeing up time to work
database retrieval, the scoring and selection of compounds on
tisation of compounds on the basis of their synthetic viability.
this approach would involve a high maintenance overhead and
therefore built directly on LangChain, customising its class tem-
We experimented with two LangChain agent types: ReAct and
agent was found to be harder to prompt, and its implementation
The Structured Chat agent was more consistent and
3.5 Turbo, GPT-4 Turbo, or GPT-4o via Azure OpenAI in Foundry
forms, including Mol2Mol from REINVENT4 (for molecule gen-
eration and scoring),(p20) AiZynthFinder,(p21) Precedent
Finder,(p24) the Predictive Insight Platform (PIP) (for scoring),(p2)
as well as some in-house APIs for data retrieval. We introduced
we introduced conversational memory, enabling persistent
We implemented the multi-agent system in LangGraph, an
the supervisor performs two key functions: (i) task routing, in
task decomposition, in which it breaks down the overall request
allows each agent to operate within a specialised, minimal
Ease of inter-agent connectivity and integration. Within an
synthesis-related tasks with AiZynthFinder(p21) and Precedent
cessing tasks, including SMILES validation and the conversion of
SMILES representations. Finally, the agent-tool Analyzer carries
Imposed strict prompt rules requiring that all chemistry operations be
employed a test suite of 33 questions. Each question was submit-
ted three times to account for the inherent stochasticity in LLMs.
to return precomputed results in order to avoid dependence on
are deterministic and reduce the execution time of the auto-tests.
LangFuse allows the tracking of the agent execution, enabling
step-by-step diagnosis, debugging, and programmatic evaluation
response time and token usage but showed a higher rate of
tool-call errors when compared to the single-agent system.
agent system consistently self-corrected and produced the correct
based application that offers a graphical and natural language
Users can ask questions through a chat box, with the possibility
displayed in real time. This includes the tools selected, the
inputs passed to them, and the execution sequence. Users
The chat interface implements a feedback mechanism: users
improve the system. Feedback is also logged with LangFuse,
vent, AiZynthFinder, and PIP, which expose robust APIs that
However, these integrations rely on bespoke client code in the
The agentic system currently struggles with long conversa-
sub-agents need to be passed around by the supervisor.
change in LLM required at least one week of prompt tuning and
occasional agent misbehaviour remains a challenge when scaling
robust governance needs to be established to prevent the
accidental misuse of agents, and to ensure that outputs are vali-
drug discovery by broadening access to expert tools such as gen-
current literature lacks examples of the real-world adoption of such systems in drug discovery. We
there is has been no published discus-
- Source 2:
Reinvent 4: Modern AI-driven generative molecule design
Supporting excerpts (3)
REINVENT 4 is a modern open-source generative AI framework for the design of small molecules.
The software utilizes recurrent neural networks and transformer architectures to drive molecule generation.
REINVENT is in production and continuously maintained.
- Source 3:
A Demonstration of an LLM-based Multi-agent System for Drug Discovery
Supporting excerpts (14)
system for drug discovery developed at AstraZeneca
presented system supports routine drug discovery tasks, including
analog generation, compound scoring, and synthesis planning.
The core system consists of the following four sub-agents:
The Design agent uses different running modes of the REIN-
to perform retrosynthesis in order to predict
a synthesis plan. It also uses the Precedent Finder algorithm
to find close analogs of chemical reactions in database(s) of his-
The Analyze agent is provided as part of the
and uses an LLM to generate python code
context protocol) servers. We used GPT-4o
resent only a subset of those available in the production system,
ternal use by AstraZeneca scientists but also provide an open-source
AAMAS 2026, May 25–29, 2026, Paphos, Cyprus
- Source 4:
Supporting excerpts (35)
we present an LLM-as-a-Judge evaluation framework for ChatInvent, an
agentic drug discovery assistant deployed at AstraZeneca, with five con-
grated into the AstraZeneca discovery pipeline to navigate the different stages
sion was released that is entirely based on open-source codes instead of internal
a multi-agent framework that includes a supervisor agent and four task-specific
Template-based retrosynthesis prediction based on
Mines reaction databases for literature precedents
Transformer based model for molecular
in a tool itself, both a missing required argument to ReinventScoring. The re-
Synonyms2Smiles Converting molecule names to SMILES strings. Utility
These 35 questions were presented to five annotators who are expert re-
observe that by optimizing the judge, we can improve the alignment from 0.80
to 0.86 when evaluated on the validation set.
70 questions were evaluated by a single Gemini 3.1 Pro
from ChatInvent with a Tool Call Correctness of 90%, Relevancy of 86%, Scope
Adherence of 84% and Structural Clarity of 90%. However, we observe that the
Completeness score is much lower, with 43% of the outputs rated Complete and
39% rated Partially Complete.
The combination of 90% Tool Call Correctness with 43% Completeness is an
actionable finding. Of the 63 questions whose tool call sequence was fully correct,
Fig.9: Radar plot showing mean judge scores over the 38 extended test questions
33 were nevertheless scored below Complete. The agent selects, sequences and
most often the CSV path returned by Mol2Mol. The defect is therefore
Across all 111 evaluated runs only two failures originated
the orchestrator reached its recursion limit.
four were refused by the model provider
governed by the stated intent of the request. The two prompts that made a
supervisor node without any tool call, and were scored 1 on Ethical Awareness.
The remaining four prompts requested analogues of a controlled substance in
neutral task language, and all four were processed without objection, in three
vented by neutral phrasing, and is not on its own sufficient for a deployed design
Limitations The evaluation set is deliberately small. The 20 seed questions were
five domain experts each scored 35 outputs across four dimensions, giving
700 individual judgments.
find no strong evidence that formality affects output quality, and instead report
- Source 5:
Supporting excerpts (1)
ensuring expert human review remains central to every AI-driven insight
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.