About all I can think of to make it more generic would be to give each user an extension that matches, say, the last 6 digits of the DID that is routed through the flow.
Use a Data Action which uses the Search API POST /api/v2/users/search with the extension as the Value, addresses.voice as the Field, type of EXACT something like
{
"query": [
{
"type": "EXACT",
"fields": [
"addresses.voice"
],
"value": "8788"
}
]
}
Use the first "id": field from the results (the user's id) in a Find User by ID action in the flow to find the user to transfer to.
------------------------------
George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
Technical Adoption Champion
Genesys
2024 Community Member of the Year
------------------------------