Ares Stavropoulos
Ares Stavropoulos

Reputation: 170

Event Bridge Contact Events AWS Connect Integration

I recently started up an AWS Connect instance from a cloud formation. I want to route the call events to a web server, where I can process each event in real-time and display it to my web app. Here is the general structure:

API Gateway:

Web server:

Event Bridge:

AWS Connect:

Question: The AWS Connect lambda invocation function is receiving the Contact Flow Events with caller number data, but how do I use that caller number data in the Event Bridge rule lambda function? Is there an easy way to associate the two? Technically, because both events share a "contactId" key, I can dump contact flow events into a dynamo db table with short expiration, and retrieve it from the Amazon Connect Contact Event based on the contactId, but is there a more straightforward, lower latency solution? Thanks for the read :)

Upvotes: 0

Views: 233

Answers (1)

ledge
ledge

Reputation: 474

As the event data from Connect contains both the ContactID and the Instance ARN, the lambda function called by event bridge can call GetContactAttributes to get the call attributes, including the callers phone number.

https://docs.aws.amazon.com/connect/latest/APIReference/API_GetContactAttributes.html

Upvotes: 0

Related Questions