- 24 Jan 2025
- 2 Minutes to read
- Print
- DarkLight
- PDF
AWS EventBridge Configuration
- Updated on 24 Jan 2025
- 2 Minutes to read
- Print
- DarkLight
- PDF
Introduction
Once Genesys Cloud has been configured to send events to AWS EventBridge, you must configure EventBridge to send the Genesys events to Nectar DXP. These steps are intended for those who are using their existing AWS EventBridge configuration. If you choose to use Nectar’s EventBridge infrastructure for an additional fee, no further work is required.
EventBridge Configuration
Partner Event Source
First, login to your AWS console and navigate to Amazon EventBridge. Make sure you are in the same region that was configured when setting up the Genesys EventBridge Integration.
On the left-side menu under Integration, click on Partner event sources
You should see a list of partner event sources. The Genesys integration should have created a new partner event source that ends with the Event Source Suffix defined when setting up the Genesys EventBridge integration. Select that event source and click Associate with event bus
This should open the Associate with event bus screen. Don’t select any options and click Associate.
You should see a message at the top of the screen that states Successfully associated the event source with the event bus. The partner event source should now have an associated event bus that has a status of Active.
Copy the full text of the event bus name and provide this to Nectar.
API Destination
This section will configure the settings required to setup the destination to send Genesys events.
On the left-side menu, select Integration - API Destinations
Click on Create API destination
Under Name, put something like Nectar-DXP-Events
Under API destination endpoint, enter the URL to send events to. Nectar will provide this information to you.
Under HTTP method, select POST
Under Connection type, select Create a new connection
Under Connection Name, type a name like Nectar-DXP-Events
Under Configure invocation, select Public
Under Configure authorization, select Custom configuration
Under Authorization type, select API Key
For API key name, type awsApiKey
For Value, Nectar will provide this to you. If you are doing this before talking to Nectar, simply put random text. This can be updated later.
Click Create. You should see a summary screen with a message bar that states Successfully created API destination Nectar-DXP-Events..
Rules
Rules are used to filter out unnecessary events from the event feed to Nectar DXP.
On the left-side menu, select Buses - Rules
Under Select event bus, select the event bus created in the previous sections.
Click on Create rule
Under Name, type something like Genesys-Voice-Conversation-End
Ensure the correct event bus is selected and click Next
Under Event source, select Other.
Scroll down to Creation method and select Custom pattern (JSON editor)
Under Event pattern, copy/paste the following JSON:
{ "source": [{ "prefix": "aws.partner/genesys.com" }], "detail-type": ["v2.detail.events.conversation.{id}.customer.end"], "detail": { "eventBody": { "mediaType": ["VOICE"] } } }
Click Next
Under Target 1 - Target Types, select EventBridge API destination
Under API destination, select the API destination created in the previous sections.
Under Execution role, select the option that makes the most sense for your environment. If unsure, select Create a new role for this specific resource and give it a name like Nectar-DXP-Rules
If you want to track the events going to Nectar DXP, you can add additional targets such as CloudWatch
Click on Skip to Review and Create. Review the settings and click Create Rule
Repeat steps 3-14 for another rule with the parameters below:
Name: Genesys-User-Token
Event pattern:
{ "source": [{ "prefix": "aws.partner/genesys.com" }], "detail-type": ["v2.users.{id}.tokens"], "detail": { "eventBody": { "ipAddress": [{ "anything-but": "" }] } } }
Everything else should be the same, including the role.
Once Nectar completes the configuration on the DXP side, events should start immediately flowing into Nectar DXP and conversations should appear in the UI shortly after.