Skip to main content
Back to Components manual

Health Questionnaire

On this page

Purpose

Health Questionnaire runs standard health questionnaires as a multi-turn conversation. It asks one question at a time, validates each answer, and calculates the result after the last valid answer. It saves progress for the chat session, so the person continues at the same question after an interruption.

One node can offer one questionnaire or several. A person takes one at a time. The person can ask to change an answer, to start over, or to take a questionnaire again.

It is a tool-only component. Connect it to Agent Core to run the conversation. It does not provide a standalone form, diagnose a condition, recommend treatment, or contact a clinician or emergency service.

When to use it

  • Add a standard screening questionnaire to an intake, check-in, or coaching conversation.
  • Collect answers in a fixed order without asking a model to remember the questionnaire.
  • Calculate the questionnaire's score with deterministic rules.
  • Offer more than one questionnaire in the same chat.
  • Use the structured result in reviewed routing logic or to support a human decision.

Supported questionnaires

PHQ-9

PHQ-9 asks nine questions about depression symptoms during the last two weeks. The questions cover interest, mood, sleep, energy, appetite, self-worth, concentration, movement or restlessness, and thoughts of death or self-harm.

The component returns a score from 0 to 27 and one of these labels: Minimal, Mild, Moderate, Moderately severe, or Severe. It also marks scores of 10 or more as a positive screen.

PHQ-9 includes a self-harm question. The component records and scores the answer, but it does not trigger an alert or provide crisis support. Whenever PHQ-9 is used with real people, add a reviewed safety response for any answer other than Not at all to that question. Handle it separately from the total-score threshold.

GAD-7

GAD-7 asks seven questions about anxiety symptoms during the last two weeks. It covers nervousness, difficulty controlling worry, excessive worry, trouble relaxing, restlessness, irritability, and fear that something awful may happen.

The component returns a score from 0 to 21 and one of these labels: Minimal, Mild, Moderate, or Severe. It also marks scores of 10 or more as a positive screen.

BMI

BMI asks for weight in kilograms and height in centimeters. It calculates body mass index as weight divided by height in meters squared. The component has four configured interpretation bands: Underweight, Healthy weight, Overweight, and Obesity.

Weight must be between 1 and 500 kg. Height must be between 30 and 300 cm. Decimal values can use a period or comma.

The component does not ask for age or check whether its configured bands are appropriate for the person. Do not use these bands for children or teenagers. BMI is a screening measure, not a diagnosis, and does not distinguish fat, muscle, and bone mass.

AUDIT-C

AUDIT-C is the three-question alcohol consumption screen. It asks about drinking frequency, drinks on a typical drinking day, and how often the person has six or more drinks on one occasion.

The component returns a score from 0 to 12. It marks scores of 4 or more as a positive screen. This is one fixed default threshold. The component does not choose a different threshold based on sex, age, or clinical context.

AUDIT

AUDIT is the full ten-question alcohol screen. It includes the three AUDIT-C consumption questions, then asks about loss of control, missed responsibilities, morning drinking, guilt, memory loss, injury, and concern from other people. Questions four through eight refer to the last year. The injury and concern questions ask whether the event happened and distinguish events during the last year from earlier events.

The component returns a score from 0 to 40 and one of these labels: Low risk, Hazardous, Harmful, or Possible dependence. It also marks scores of 8 or more as a positive screen.

WHO-5

WHO-5 asks five questions about well-being during the last two weeks. It covers positive mood, calmness, energy, feeling rested, and interest in daily life.

The component returns the raw score from 0 to 25 and a displayed score from 0 to 100. It calculates the displayed score by multiplying the raw score by four. Higher scores mean better reported well-being. A raw score below 13 receives a screening flag.

Required setup

Choose one or more Questionnaires, then connect Toolset to Agent Core's Tools. One Health Questionnaire node can offer every questionnaire the flow needs.

For PHQ-9 and other health-related uses, define how the flow handles answers that need human or urgent review. Do not rely on the questionnaire's total score alone for that decision.

How to use it

  1. Add Health Questionnaire and select the Questionnaires it offers.
  2. Connect Toolset to Agent Core Tools. Tool Mode is always on and cannot be disabled.
  3. Tell the Agent which questionnaire to run and when. The tool's description explains its actions to the Agent.
  4. If an answer is unclear, have the Agent ask again. It must not guess, skip the question, or continue from chat memory.
  5. When the result is complete, the Agent stops asking questions and uses the returned score, interpretation, and threshold information.

Health Questionnaire connected to an Agent in Tool Mode

For example, a person may answer "a few days" to a PHQ-9 question. The Agent can map that to the exact allowed answer Several days when the meaning is clear. If the answer could match more than one option, the Agent should ask the person to choose from the allowed answers.

What the Agent can do

Every call the Agent makes states one action.

  • Check where things stand. The tool returns the current question, or the result when the questionnaire is complete. This begins a questionnaire when none is in progress. It changes nothing otherwise, so the Agent can use it after an interruption.
  • Record an answer. The Agent says which question the answer is for. The tool records an answer only for the current question, so an answer meant for an earlier question is never recorded against a later one.
  • Review the answers. The tool lists the answers recorded so far.
  • Change an answer. The tool replaces one recorded answer.
  • Start over. The tool ends the current attempt and begins the same questionnaire again at the first question. On a node that offers several questionnaires, the Agent can begin another one in its place.

A call that the tool cannot use changes nothing. The reply says why and what the Agent should do next. This covers an invalid answer, a missing detail, and an answer for an attempt that has ended.

Changing an answer

The Agent changes an answer only when the person asks to.

  • While the questionnaire is in progress, the person stays on the question they were on. They do not answer the questions in between again.
  • After the result, the tool recalculates it. The reply holds both the new result and the earlier one, and the Agent tells the person that the new result replaces the earlier one.
  • An invalid replacement leaves the recorded answer as it was.
  • If the Agent sends a different answer for a question that already has one, the tool changes nothing. The Agent asks the person which answer they mean.

Starting over and retaking

The Agent starts over only when the person asks to.

  • Starting over during a questionnaire discards the answers given so far.
  • After the result, the person can take the same questionnaire again. The retake is a separate attempt, and the tool does not reopen the completed one.
  • If an answer from before the start-over arrives late, the tool does not use it. The reply tells the Agent that the start-over worked and which question is current.

Offering several questionnaires

  • With one questionnaire selected, the Agent does not need to name it.
  • With several selected, the tool lists them and where each stands. The Agent names the one to begin. If it is not clear which one the person should take, the Agent asks.
  • Only one questionnaire can be in progress at a time. If the person asks to stop the current questionnaire and take another one, the Agent can switch. The tool then discards the answers given so far and gives no score for the questionnaire that was stopped.
  • When the person begins another questionnaire after completing one, the new attempt replaces the completed one. The earlier answers can no longer be reviewed or changed.

Changing the node while people are using it

  • If you remove a questionnaire from the node while a person is partway through it, that attempt ends without a score. The Agent tells the person, and nothing new begins until the person asks.
  • An attempt also ends without a score when the questionnaire's content is no longer the content the person began with. The person can start it again.
  • A result from before such a change still stands, but its answers can no longer be reviewed or changed.
  • A deployed agent keeps the node settings you deployed. A change you make on the canvas, such as adding or removing a questionnaire, reaches the people who use the deployed agent when you deploy a new version.

Configuration

SettingWhat it controlsRecommended starting point
QuestionnairesThe questionnaires this node offers: PHQ-9, GAD-7, BMI, AUDIT-C, AUDIT, WHO-5.Select the questionnaires the flow needs. PHQ-9 is the default.

The Agent supplies everything else at run time.

If a flow built with an earlier version of this component reports that the component is outdated, update the component on the canvas. The selected questionnaire is kept. For a deployed agent, deploy a new version after the update.

Expected result

Each tool call tells the Agent what happened, what to do next, which questionnaire is in use, and whether it has not begun, is in progress, or is complete. While the questionnaire is in progress, the Agent also gets the progress and the current question: its allowed answers, or the unit and range for a numeric question. A complete result has the score, interpretation, and any threshold flags that were met.

An invalid answer does not move the questionnaire forward. The Agent gets the reason and asks the same question again.

If an answer cannot be saved, the questionnaire does not move forward either. The tool asks the Agent to send the same answer again, and sending it again never records it twice. If the tool reports that the questionnaire is not available, the Agent tells the person and asks no questions. In both cases, do not instruct the Agent to continue from chat memory.

The component saves the answers and the result for the chat session. A completed questionnaire keeps them, so the person can still ask to change an answer. Deleting the chat session deletes them.

Reference details

Choice questions accept the text of one option while ignoring capitalization, extra spaces, surrounding quotes, and a trailing period. They do not accept option numbers or arbitrary conversational text. Some AUDIT answers are themselves numbers, such as 3 or 4, so a bare number would be ambiguous. Agent Core should map a clear reply to one allowed answer and ask for clarification when the mapping is uncertain.

Scores, severity labels, and threshold flags are screening results. They are not diagnoses or treatment recommendations. A downstream Agent may explain the returned fields, but it should not present them as a clinical conclusion.

Answers and results can contain sensitive health information. Health Questionnaire does not redact them, and it saves them for the chat session. Review any downstream model prompts, traces, storage, and displayed output before using the flow with real health data.

  • Agent Core runs the conversation and calls Health Questionnaire after each answer.
  • Chat Input receives the person's replies.
  • Chat Output displays each question and the final explanation.
Back to Components manual