Evidano home
Published in the Online Brazilian Journal of NursingResponsible AIUniversidade Federal de Pernambuco (UFPE)

Reflexive Thematic Analysis With AI Agents: Traceable, Auditable, and Still Human-Led

Evidano11 min read
Rafael Cardoso Sampaio, Professor of Political Science at the Universidade Federal de Pernambuco

A researcher finishes collecting twenty interviews, opens a generative AI chatbot, pastes in excerpts from the transcripts and receives a list of themes that look ready to use. The answer is fluent and convincing. It is also hard to verify: there is no record of how the themes were built, no indication of where each idea appears in the material, and no guarantee that the quoted statements exist. For qualitative researchers, the problem is not only that such findings may be wrong, but that they cannot be traced, contested or defended.

That scenario opens “Artificial intelligence agents for reflexive thematic analysis without programming,” published in 2026 in a supplement of the Online Brazilian Journal of Nursing by Rafael Cardoso Sampaio of the Department of Political Science at the Universidade Federal de Pernambuco (UFPE). The methodological study describes an open “skill” for AI agents, a reusable package of plain-text instructions that an agent loads for a given type of task, which conducts reflexive thematic analysis in seven phases. The skill was applied to a real corpus of twelve focus group sessions on the meanings of democracy and social protection in Brazil, and evaluated in a controlled test of 126 blind runs.

We spoke with Rafael Cardoso Sampaio, Professor of Political Science at UFPE, to learn more about how researchers without programming training can use AI agents in a methodical and traceable way, and why interpretation and responsibility must remain human.

About the article

Research question

Can researchers without programming training use AI agents to analyse qualitative data in a way that is simple, reliable, transparent and replicable? The article sets out to describe a skill for reflexive thematic analysis, built from Braun and Clarke’s six phases and from the documented risks of generative AI, and to show what it does on real data.

Key finding

The skill organises the analysis into seven phases, from the methodological decision to the final report, with literal verification of quotations and checks that block shortcuts. On the real corpus it completed the full workflow with full coverage of the sessions, and in the blind test the condition with the skill adhered more closely to the methodological criteria than the same model without it. The author is careful about what this shows: the blind test was judged by an AI agent, human validation is still to come, and AI agents can be used this way only “provided that interpretation and responsibility remain human.”

Why this research matters

The use of generative AI in qualitative research has grown faster than its documentation. The article draws on a literature that documents fabricated or embellished quotations, the tendency of models to agree with the researcher’s hypothesis (sycophancy), fluent text that masks a lack of interpretation, and the silent erasure of rare experiences. Chatbots are easy to use, but every conversation starts from scratch, so methodological control is fragile. Programmatic workflows offer more control and reproducibility, but they require technical skills that most qualitative researchers do not have, and so exclude precisely those who most need help with documentation.

This study explores an intermediate path. AI agents run a model inside a structure that lets it use tools, follow rules, work with files, log each step and check its own outputs before delivering an answer, and they are available in desktop programs that run on ordinary model subscriptions. Reflexive thematic analysis is a demanding test case: it has defined phases and clear criteria, it holds that themes are constructed by the analyst rather than discovered in the material, and it requires decisions from the researcher that cannot be delegated. Rafael Cardoso Sampaio explained why he chose to build and test the skill: “Until last year, I believed there was no reliable, transparent way to use AI in qualitative research, other than paying for expensive CAQDAS software with AI subscriptions. With the arrival of AI agents such as Claude Code and ChatGPT Codex, I saw a paradigm shift: they greatly improved the ability to build a workflow that can be followed and that supports replicability. Many researchers still simply upload their material to ChatGPT, so I thought a skill was a simple way to improve things, at least by fixing the path the AI agent follows.”

Key findings from the article

Three findings stand out because they show both what the approach makes possible and where its limits lie.

  • The agent proposes, and the researcher decides, at every phase. The skill’s seven phases run from F0, a governance addition in which the researcher records the research question, corpus, theoretical position and how much to delegate before any coding, through initial reading (with no codes), codes anchored in located excerpts, candidate themes organised by meaning, a contestation phase in which a rival reading is tested, defining and naming each theme, and a report with an AI use statement and the status of the analysis. Each phase produces a document that records the separation between proposal and decision. Researchers can choose how far the agent proceeds alone, and the name “reflexive thematic analysis” is reserved for routes with an active human analyst; the fully autonomous route declares the absence of human validation.
  • On a real corpus, the workflow ran end to end, and every quotation was checked. Working on twelve focus group sessions from Belém, Recife and Curitiba, across four income brackets, the agent generated 54 codes, each with a meaning, an excerpt, a corpus locator and an interpretive note, and built 11 candidate themes. The contestation phase proposed a rival reading, that declared electoral position rather than income or city organises participants’ meanings; it overturned no theme, but it prompted revisions, a split and a new theme. Mergers that each had to show two themes described the same phenomenon brought twelve themes down to seven. Verbatim verification confirmed that all 40 candidate quotations exist in the original corpus. The full route took less than an hour, an informal estimate set against weeks of manual work.
  • In a blind test, the skill reduced methodological shortcuts. The skill was compared with the same model without it across 126 runs: 21 “trap scenarios,” each repeated three times in each condition, designed to test whether the protocol refuses shortcuts such as skipping the initial reading, treating a topic summary as a theme, publishing a quotation that does not exist in the corpus, exposing participant identifiers or fabricating consent for AI use. An AI agent that had not generated the outputs scored each one against 14 criteria, and the skill condition adhered more closely to the methodological criteria. Portability was verified across two distinct AI agents. As the author notes, the result is favourable but does not establish validity.

Taken together, the findings suggest that the gap between pasting excerpts into a chatbot and building a programmatic pipeline can be narrowed without writing code, and that the main gain is not speed but traceability: each phase leaves materials that third parties can examine, audit and contest. Rafael Cardoso Sampaio reflected on the results: “The AI-assisted workflow works very well, and that may be precisely its limit. An important part of qualitative research lies in understanding depth, not overlooking what appears only rarely in the data, and allowing room for surprise. One key precaution is not to run everything through an AI workflow alone. The skill is only a starting point.”

Methods and research approach

This is a methodological study describing how the skill was developed and applied. It was built at the intersection of the six phases of reflexive thematic analysis and the documented risks of generative AI, so that each phase became a step with a required output and a check that blocks shortcuts, such as skipping familiarisation with the data, accepting vague codes, citing an unverified excerpt or presenting a topic summary as a theme. Using it requires no coding: the researcher installs an agent program, asks the agent to install the openly available skill, opens the agent in a folder containing the transcripts and states the request in natural language, as they would to a research assistant.

For the demonstration, the skill was run in OpenAI’s Codex application with the ChatGPT Luna 6 model at an extra-high effort setting, on the fully autonomous route, with no human taking part in the workflow. The corpus came from focus groups held in 2024 in 11 Brazilian state capitals across four income brackets defined in multiples of the minimum wage; the analysis used a derived, anonymised corpus of twelve sessions (154,573 words) from three cities. The research question asked how participants construct meanings about democracy, the state, corruption, social protection and moral life, and how socioeconomic position cuts across them, with city and income treated as contrast attributes rather than themes. Excerpts reproduced in the publication were paraphrased to protect participants.

The author is candid about the limits. AI has no lived experience, situated judgement or human reflexivity, and checking quotations does not guarantee interpretive quality. The file inventory confirms each document’s identity, not what the agent read in it, and agreement among agents does not amount to human triangulation. Subscription costs remain a barrier, particularly for Brazilian graduate students and faculty, and sensitive data processed by third-party services raise questions of consent, data protection and international transfer that rest with the researcher and the research ethics committee. The most important limitation at this stage is the lack of validation with human researchers and against high-quality thematic analyses, which the author plans as the next stage of the research.

Broader implications

For qualitative researchers, the most practical implication is a model of transparency rather than a shortcut. Because the protocol is open, a reviewer who disagrees with an analysis can apply it with different parameters and see where the interpretation diverges, and an advisor can use it as a teaching tool. The author places this within health and nursing research, where demands for transparent reporting are growing and thematic analysis of interviews and focus groups is increasingly common. Rafael Cardoso Sampaio was clear about where researchers need to stay in charge: “That is the million-dollar question! At the current moment, in a sense, at every phase of the process. But to answer directly: in thematic analysis, it is certainly worth looking at the start of the process, the initial coding and the first approximation of themes, because that is where AI can speed things up too much and miss important points. I believe AI tends to do well at merging and reviewing themes. The first extraction is precisely the most complex part.”

The study also reframes what responsible AI use can look like in qualitative work: not a promise of equivalence with human coding, but a set of documents that let others reconstruct, contest and transform what the agent produced. As the article concludes, “The tool should help the researcher think better, never think for the researcher.” Asked for his advice, Rafael Cardoso Sampaio said: “Don’t fall for the efficiency fallacy. Using AI doesn’t necessarily mean producing more in less time. It can mean producing better in the same time, and attempting bolder, more complex work. We don’t want to make the process even more degraded and driven by who publishes the most. Still, AI’s capacity to complement humans and help us reach more innovation is undeniable. So AI is good when it helps and complements us, and bad when it replaces us. That is what I believe.”

It is equally important to be clear about what the study does not show. The demonstration used the fully autonomous route on one corpus, the blind test was scored by an AI agent rather than human validators, and the time saving is an informal estimate. Validation by two AI agents may also reflect biases the technologies share. What the article supports is feasibility, transparency and auditability, not human equivalence or automatic validity.

About Rafael Cardoso Sampaio

Rafael Cardoso Sampaio, Professor of Political Science at the Universidade Federal de Pernambuco

Rafael Cardoso Sampaio is a Professor in the Department of Political Science at the Universidade Federal de Pernambuco (UFPE) and a Level 1D CNPq Productivity Fellow. He coordinates labiia_lab, the Interdisciplinary Laboratory of Artificial Intelligence for Methods, Democracy, and Society, and served as president of the Brazilian Association of Researchers in Communication and Politics (Compolítica) from 2019 to 2021. His research spans political communication and digital democracy, including digital campaigns, e-participation, online deliberation, open government and digital participatory budgeting, and artificial intelligence. He has served as a consultant for organisations including the World Bank and co-authored guidelines for the ethical and responsible use of generative AI by researchers.

About the authors

  • Rafael Cardoso Sampaio (Department of Political Science, Universidade Federal de Pernambuco, Recife, Brazil)

Read the article

Read the full research article (also available in Portuguese and Spanish), “Artificial intelligence agents for reflexive thematic analysis without programming,” published in the Online Brazilian Journal of Nursing in 2026.

Full citation

Sampaio, R. C. (2026). Artificial intelligence agents for reflexive thematic analysis without programming. Online Brazilian Journal of Nursing, 25(Suppl. 1), e20267166. doi.org/10.17665/1676-4285.20267166

View the publication

We are grateful to Professor Sampaio for sharing his perspective on this study and for his contribution to the responsible, transparent use of AI in qualitative research.

Research, accuracy and responsible AI

How Evidano's output has been evaluated, how its models were built, how your data is handled, and how to disclose or cite AI use in your own work.

  • Resource

    Human vs AI: validated accuracy benchmarks

    Four head-to-head comparisons against expert human analysis — 371 interview transcripts with Arizona State and Penn State, 298 evaluation reports, 224 open-ended survey responses with UT Austin and Wichita State, and a 160-response manual-coding review.

  • Resource

    How Evidano’s models were trained

    Model provenance for research-ethics review: a provenance-tiered curated corpus, and customer uploads, prompts and outputs excluded from training entirely.

  • Resource

    Data security for qualitative research

    Encryption in transit and at rest, customer-controlled deletion, regional storage, and SOC 2 Type 2, GDPR, HIPAA-ready and CCPA/CPRA compliance.

  • Resource

    How to cite and disclose Evidano

    Citation formats in APA, MLA, Chicago, Harvard and Vancouver, methods-section wording per workflow, and an AI-policy review of 41 journals across 8 disciplines.