Amazon EventBridge

Amazon Event Bridge is a Serverless event bus that connects application data from your own apps, SaaS, and AWS services and delivers real-time data to targets such as AWS Lambda. You can set up routing rules to determine where to send your data to build application architectures that react in real time to all of your data sources. EventBridge enables you to build event-driven architectures that are loosely coupled and distributed. For more info, check out the intro video below.

Intro: https://youtu.be/TXh5oU_yo9M

The VoiceWorx platform allows for the rapid integration of Event-Bridge to various voice chanels such as, Alexa, Lex, Google Assistant and more.

Objective:

The Objective of this document is to allow user to integrate Amazon EventBridge with VoiceWorx platform and perform basic operation as event generation from VoiceWorx.

Here are some prerequisites that the user that need to be fulfilled to move forward:

Pre-requisites

  • An Active VoiceWorx Account

You can register here if you do not have one already.

  • An active AWS Account

You should have an active AWS Account. If you do not have it, you can create an AWS account at https://portal.aws.amazon.com/billing/signup#/start

AWS Accounts Include 12 Months of Free Tier Access

  • At least one Amazon EventBridge Event Bus and At least one rule defined

If you do not have any Aurora DB instance, you can create one quickly.

You can use the following details:

Integration with VoiceWorx

To Configure Event-Bridge, browse to: Integration > Connect System > Add New Connection in the VoiceWorx platform and select options as shown below.

On the configuration screen, provide the information as shown below. You can get your required AWS Credentials from the AWS IAM console. Visit Video: How to get Amazon (AWS) Key and Secret

Once this is done, Create an App and a Data Source.

Create App in VoiceWorx Portal

To create app, select ‘Custom Apps’ from the left-hand panel -> Manage Apps -> Click Create New Custom App. Enter following details in the resulting page:

Create Data Source

Once the app is created, go to ‘Data Source’ Tab and create new data source.

Create Method:

As of the publication date of this document, Event Bridge has only one method available; “PutEvent”. This method allows you to create an event on Amazon EventBrdige using the VoiceWorx platform.

In the Method tab, select create new method. Use following details to create the method.

Sample Values:

After the method has been created, we can test if the method is functional or not by clicking on Test from the action menu, if successful, it should return “EventId” as shown in below in the JSON tab.

. It means that the EventBus default was successful to generate the event and the event rule was successful to invoke the Lamda function ContactFinder as defined in the event rule before.

Create Intent:

Create Intent corresponding to the method.

Create Utterance

Utterances are short keywords used to invoke the intent.

Create Input

The next step is to create input corresponding to the Intent.

Create Publish

After all the components of the app have been created, now lets publish the app to one of the VoiceWorx supported channels. For this document, we are demonstrating on how to publish to Amazon Lex Bot. Fill the following details and Save.

Once the publish profile is created, click on Actions and click on Publish to Lex. You will then be redirected to the screen where you have to choose which AWS account you want to publish the bot to.

Click on Publish to Lex V1 and on success, you shall receive success confirmation as below:

Click on go to Lex Skill to test the bot.

Here is a sample success result in Amazon Lex Chatbot.

Congratulations, you’ve successfully completed Amazon EventBridge and VoiceWorx integration.

Last updated