# Stedi’s real-time eligibility integration for Amazon Connect Health

> Learn how Stedi’s real-time eligibility integration for Amazon Connect Health helps AI voice agents check insurance coverage and quote a co-pay over the phone.

Published Jul 29, 2026

Updated Nov 10, 2026

Category: Guide

[Amazon Connect Health](https://aws.amazon.com/products/connect/health/) is a managed service for building AI agents that handle common healthcare tasks, like scheduling or scribing clinical notes.

One of the things Connect Health’s AI agents can do is take calls from patients. The agents can answer the call, verify the caller’s identity against the provider’s EHR, and book an appointment.

If you use an integration to connect Connect Health’s agents to a real-time eligibility vendor – like Stedi – the agents can also check the patient’s insurance coverage and quote the patient a co-pay.

We recently published a [reference implementation](https://github.com/Stedi/amazon-connect-health-stedi) of a real-time eligibility integration between Stedi and Amazon Connect Health on GitHub.

The repo covers setup, testing, and deployment. This guide walks you through what Amazon Connect Health is, how the integration works, and the things worth knowing before you start.

You can also watch this video for a full walkthrough:

[Demo: Insurance verification for Amazon Connect Health with Stedi](https://www.youtube.com/watch?v=SmpMmLvTvyw)

## Amazon Connect Health agents

Amazon Connect Health offers two types of agents:

- **Patient engagement agents** handle inbound and outbound voice calls with patients.

- **Point of care agents** support clinicians during a visit with ambient documentation and pre-visit summaries, the latter currently in preview.

This guide – and our reference implementation – focuses on patient engagement agents.

### Patient engagement agents

Say a patient calls their doctor’s office to schedule an appointment. Before scheduling, the provider needs to verify the caller’s identity. Connect Health splits those tasks between two subtypes:

- The **Patient verification agent** confirms a caller’s identity at the start of the call by matching what they say against EHR records.

- The **Appointment management agent** helps patients schedule, reschedule, and cancel appointments.

## Real-time eligibility integrations for Connect Health

[Insurance verification](https://docs.aws.amazon.com/connecthealth/latest/userguide/insurance-verification.html) is an optional feature of Appointment management agents. When a patient schedules or reschedules, the agent can check their coverage and quote a co-pay before it confirms the appointment.

The verification itself runs through a vendor integration that performs [real-time eligibility checks](https://www.stedi.com/docs/healthcare/intro-eligibility-checks).

To help developers build real-time eligibility integrations, Amazon provides a vendor-neutral [sample implementation](https://github.com/aws-samples/sample-healthcare-realtime-eligibility). Our reference implementation is adapted from that sample, customized to use our [Real-Time Eligibility Check JSON](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check) endpoint.

## How the integration works

The integration is an AWS Lambda function – serverless code that runs on demand – and it sits between the voice agent and Stedi:

1.  On the call, the agent collects the information needed for the eligibility check, such as the patient’s name, member ID, and date of birth.

2.  The Lambda maps those fields to a Stedi [Real-Time Eligibility Check JSON request](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check). The appointment dates become the [dates of service](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#body.encounter.dates.service) on the request, so the payer answers for the appointment rather than for today.

3.  Stedi returns the patient’s coverage and benefits.

4.  The Lambda maps the response back to the schema Amazon Connect Health expects, and the agent reads the answer to the caller.

    From the patient’s point of view, they’re just talking to the agent. They never know that Stedi is involved, or that an eligibility check is happening at all.

### How the response is mapped

The integration’s `function/mapper.py` converts Stedi’s [eligibility response](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check) into the [response schema](https://github.com/aws-samples/sample-healthcare-realtime-eligibility#response-schema) Amazon Connect Health expects.

An example of that response, including a coverage status, a coverage period, and a co-pay:

```jsonc
{
  "status": "ACTIVE",
  "eligibilityPeriodStart": "2026-04-01",
  "eligibilityPeriodEnd": "2026-12-31",
  "paymentInformation": {
    "expectedServiceCost": 25.0 // Co-pay amount
  }
}
```

The mapper populates each field from Stedi’s eligibility response as follows.

**Eligibility status**

`status` comes from the [`status`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.plans.benefits.statuses.status) of each [`statuses`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.plans.benefits.statuses) entry in the response’s [`plans`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.plans). A value that starts with `ACTIVE`, such as `ACTIVE_COVERAGE`, means `ACTIVE` status. A value that starts with `INACTIVE` means `INACTIVE` status. Anything else – such as a payer that returns no coverage statuses – returns an `UNKNOWN` status.

**Eligibility coverage dates**

The dates come from the subscriber’s [`dates.plan`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.subscriber.dates.plan): the start date is [`start`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.subscriber.dates.plan.start), and the end date is [`end`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.subscriber.dates.plan.end).

If the payer reports no date, or an end date before the start date, the field falls back to the service date the agent asked about – `requestPeriodStart` or `requestPeriodEnd` from the request, matching the [AWS sample’s response schema](https://github.com/aws-samples/sample-healthcare-realtime-eligibility#response-schema).

The coverage date logic is simplified for demonstration purposes. See our full guidance on [when a patient is eligible for benefits](https://www.stedi.com/docs/healthcare/eligibility-active-coverage-benefits#when-is-the-patient-eligible-for-benefits).

**Expected service cost**

`expectedServiceCost` is the [`amount`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.plans.benefits.coPayment.amount) from the first in-network [`coPayment`](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check#response.plans.benefits.coPayment) entry for a Service Type Code the reference implementation hard-codes – more on that below.

## What to know before you start

### Testing without PHI

Our reference implementation includes a test event that uses one of Stedi’s [mock eligibility requests](https://www.stedi.com/docs/healthcare/api-reference/mock-requests-eligibility-checks).

Mock requests are predefined eligibility checks that return realistic – but fake – responses, so there’s no PHI to leak. You can send mock requests using a [test API key](https://www.stedi.com/docs/healthcare/api-reference#api-key-types) and Stedi’s production [Real-Time Eligibility Check JSON](https://www.stedi.com/docs/healthcare/api-reference/post-eligibility-check) endpoint.

### Service Type Codes are hard-coded

Most medical eligibility requests include a [Service Type Code (STC)](https://www.stedi.com/docs/healthcare/eligibility-stc-procedure-codes) – a broad benefit category like behavioral health or chiropractic.

The STC you use in an eligibility request determines the type of benefits – like co-pays – you’ll get back in the response.

Amazon Connect Health’s eligibility request and response schemas have no field for an STC, so our reference implementation hard-codes both ends. The request asks for STC `30` (Health Benefit Plan Coverage), which returns benefits across service types. The response mapper then pulls the first in-network co-pay for STC `33` (Chiropractic).

### For demonstration purposes only

Our [reference implementation](https://github.com/Stedi/amazon-connect-health-stedi) is demo code and hasn’t been tested end-to-end. As of this writing, Amazon Connect Health supports only Epic as an EHR, which we didn’t test against.

### Inconsistencies in the AWS docs

AWS documents the Lambda’s output schema in two places: the [insurance verification docs](https://docs.aws.amazon.com/connecthealth/latest/userguide/insurance-verification.html#iv-output-schema) and the [sample implementation](https://github.com/aws-samples/sample-healthcare-realtime-eligibility#response-schema). The two sources don’t agree.

We followed the sample implementation. Confirm which schema the Appointment management agent parses before you rely on either one.

## Get started with Stedi

To get started with Stedi, [sign up](https://portal.stedi.com/auth/sign-up-intent) for a free sandbox account. It takes less than two minutes. No credit card is required.

Sandbox accounts give you access to [mock eligibility checks](https://www.stedi.com/docs/healthcare/api-reference/mock-requests-eligibility-checks) you can use for testing or integration.

When you’re ready, upgrade to production on our [pay-as-you-go plan](https://www.stedi.com/pricing). There are no monthly minimums or setup fees. You only pay for the transactions you use.
