Project: Voice Agents (AWS)

A prototype for shipment notification calls

We built an AWS proof of concept for American Red Cross. When a blood-product shipment is dispatched, it phones the receiving facility, reads out the shipment details and handles four kinds of reply.

What the prototype demonstrates

Proof of concept, ready for a pilot

  • 2 monthsto build the proof of concept
  • 4kinds of reply the call handles
  • 6scenarios prepared for pilot testing

Why the notification call needed automating

A facility that receives blood products needs to know what is coming, how much and how urgently. Staff made these calls themselves, and in busy dispatch windows there was not always someone free to make them.

A late or missed call about an urgent STAT shipment left the facility unprepared. The proof of concept tested whether a call placed automatically on dispatch could carry the same information.

Our work

Proof of concept on AWS: the Amazon Connect contact flow, the Polly voice, the Lex V2 intent model, the Lambda function that starts the call and the IAM permissions around them.

Project details
Client
American Red Cross. Blood products shipped from distribution sites to receiving hospitals and medical centres.
Users
Staff at receiving medical facilities are the intended recipients of the call.
Scope
Outbound call on dispatch, spoken shipment summary, four recipient intents, error and fallback routes.

What the prototype demonstrates

A pilot would test each of these on real calls before the dispatch team relies on them.

The call starts when a shipment is dispatched

Nobody dials. Once a shipment record is dispatched, the call is placed with the shipment details attached.

The call flow in Amazon Connect

The flow recognises four types of reply

Asked to repeat, the agent reads the origin, destination, product, quantity and urgency again. Asked for more detail, it answers only from the shipment data it was given. The other two are a change request and the end of the call.

The call flow in Amazon Connect

A change request goes to its own branch

The call does not alter the order. A change request is routed to a separate branch, and the order itself stays with the existing process.

The call flow in Amazon Connect

A pilot checklist already exists

The prototype includes six scenarios for pilot testing: a request to repeat, a request for details, a change request, ending the call, no answer and unrecognised speech.

The call flow in Amazon Connect

What happens after the recipient answers

Once the shipment has been read out, the recipient may ask for a repeat, ask to change the order or say something the agent does not recognise.

Each reply type has a fixed branch in the Amazon Connect flow, and the agent answers only from the shipment details passed into the call. It cannot change an order. Unrecognised speech and service errors have branches of their own. A call that nobody answers is among the pilot scenarios.

Inspect the prototype call flow

Pick one notification call and list the replies your staff hear most often. We will mark which ones an agent can take and which need a person.

The call flow in Amazon Connect

The screen shows the flow as it is configured in Amazon Connect. After the greeting and the shipment message, it hands the recipient’s speech to the Lex bot.

The flow then plays Lex’s answer and branches on the recognised intent: repeat, more detail, change of order, end of call or fallback. Errors lead to a separate error prompt and the end of the flow.

What we built

Call on dispatch

A Lambda function calls the Amazon Connect StartOutboundVoiceContact API when a shipment record is dispatched. The shipment context travels through the call as contact attributes, so no further lookups are needed mid-call.

Spoken shipment summary

Amazon Polly reads the greeting and the shipment summary in a US English neural voice: origin facility, destination, blood type, number of units and delivery type, ASAP or STAT.

Four recipient intents

After the summary, Amazon Lex V2 listens. It recognises a request to repeat the information, a request for more detail, a change to the order and the end of the call. The intent model was trained on fragmented sentences and the phrasing used at medical facilities.

The contact flow

The Amazon Connect flow consists of these blocks: logging, greeting, main message, a silence prompt, customer input, intent branching, an error prompt, the end-call message and flow termination. Unrecognised replies and errors have their own routes.

Least-privilege permissions

IAM roles are scoped per service. The Lambda function may only start outbound calls; the Lex bot may only process speech input.

Technology behind Voice Agents (AWS)

Amazon Connect, Lex V2, Polly and Lambda inside the client’s AWS account.

Explore the technology and implementation

Call orchestration

  • Amazon Connect
  • AWS Lambda
  • Fastify
  • Node.js
  • AWS SDK

Amazon Connect runs the contact flow. Lambda, Fastify, Node.js and the AWS SDK connect it with the notification service.

Speech and intent routing

  • Amazon Lex V2
  • Amazon Polly

Polly reads the notification aloud. Lex V2 recognises which of the four replies the recipient gave.

Service permissions

  • AWS IAM

A separate IAM role for each service.

Where the same approach applies

The proof of concept was built for blood-product dispatch, but it applies wherever an event in an operational system should become a call to a named recipient:

Blood, pharmaceutical and medical-supply distributors that notify hospitals and clinics about urgent deliveries.

Logistics and courier operations that confirm dispatch, delivery windows and collection times with many recipients a day.

Field-service companies that announce a technician’s arrival or a changed appointment.

Customer service desks that deliver status updates by phone to customers who cannot be reached by e-mail.

Where we start

A pilot covers one call scenario: the event that triggers the call, the data it reads, the replies recipients give, what counts as confirmation, what happens when nobody answers and who handles the requests the agent cannot. We build the scenario and review the results with you before adding more.

Making the same calls every day?

Tell us what starts the call, what it has to say and what people usually ask in reply. We will answer with the one scenario we would pilot first.

Plan a voice pilot