Truthfully, I've not used Genesys Cloud functions as I'm not proficient at JS, but I understand them to be essentially compartmentalised Lambda functions inside GC, so I don't see why not.
For us the Lambda made sense, we already have the integration, and it allows easy calls to Bedrock.
The steps in the Lambda we are using are summarised below (used AI to document it). There is logic for handling ambiguity, exact matches, partial matches etc.
Matching Strategy (three-stage pipeline):
Stage 1 - Fuzzy String Matching
Fast, deterministic, zero-cost. Handles minor transcription errors,
punctuation differences, and character-level noise.
e.g. "Jon Smyth" → "John Smith" (typo/transcription tolerance)
Stage 2 - Nickname Expansion (local lookup table)
If Stage 1 finds no confident match, the spoken first name is expanded
into known common variants (e.g. "Robert" → ["Bob", "Rob", "Bobby"]).
Each variant is then re-run through fuzzy matching against the contact
list. Handles the majority of English nickname cases at zero cost/latency.
e.g. "Robert Jones" → tries "Bob Jones", "Rob Jones" etc.
Stage 3 - LLM Fallback via Amazon Bedrock (Nova Lite)
Only reached if Stages 1 and 2 both fail. Invokes the Bedrock model
with the spoken name and contact list injected into a structured prompt.
The model is constrained to return ONLY a Contact ID from the
provided list (or "NO_MATCH"), eliminating hallucination risk.
e.g. unusual names, cultural variants, heavily accented transcriptions.
------------------------------
James Dunn
Telecoms Specialist
------------------------------
Original Message:
Sent: 07-10-2026 09:09
From: Phaneendra Avatapalli
Subject: Best practice for identity verification using Bot Flow + Secure Call Flow
Hi James,
Thanks, this is really helpful and very close to what we're trying to achieve.
Do you think a similar approach would work using a Genesys Cloud Function instead of an AWS Lambda, with the function handling the fuzzy name matching before returning the result to the Bot Flow?
Thanks again for sharing your implementation!
------------------------------
Phaneendra
Technical Solutions Consultant
------------------------------
Original Message:
Sent: 07-10-2026 07:47
From: James Dunn
Subject: Best practice for identity verification using Bot Flow + Secure Call Flow
We are doing something similar for the name capture. We ask for their identifying account number and retrieve the details associated. In some cases there are multiple users associated to the account. If we need to distinguish who we are speaking to, we ask them to speak their name into a bot flow.
We then pass this name (transcribed by the bot), along with the possible correct values (the valid names on the account) to a Lambda function. We use a combination of fuzzy matching and AI (Bedrock) to see if the name spoken matches against any of the 'correct' answers. Fuzzy match first to look for e.g. 'John Smith' -> 'John Smyth', if no confident match then we ask the AI, to try and distinguish against e.g. 'Dr Roberts' vs 'Thomas Roberts', etc.
If neither provides a confident match then we reject.
------------------------------
James Dunn
Telecoms Specialist
------------------------------