From Bright Pattern Documentation
< 5.19:Amazon-aws-lambda-integration-guide‎ | Configuration
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19 • 5.8

Create a Scenario or Workflow

Once you are finished configuring your contact center’s Amazon AWS Lambda integration account, you can configure either a scenario or a workflow; in both instances, you will use the AWS Lambda block. This block allows you to invoke the functions you created in your AWS Lambda environment.

The following chat scenario allows you to invoke your Amazon AWS Lambda function in an infinite loop; the purpose of which is to be able to see that your function is connected and working properly. Note that infinite loops should be avoided in production use; this scenario is used for testing purposes only.

For chat service creation instructions, see Administrator Tutorials.

Prerequisites

As a reminder, in order to use the following test chat scenario, you must have web chat configured.

Test Chat Scenario Download

Click the following link to download our annotated test AWS Lambda scenario.

Media:App_Amazon_AWS_Lambda_Test_Scenario.zip

Test Chat Scenario Steps

  1. In the Contact Center Administrator application, section Scenarios > Chat, click + to create a new scenario the Scenario Builder application. Note that in production use, you may configure either chat or voice scenarios.

  2. In the application, you will configure the following blocks:

    1. Send Message+

    2. AWS Lambda

    3. Send Message+

    4. Goto

      Configured together, these blocks allow continual responses in your chat widget from your Lambda function.

      Lambda-Test-Scenario-1-5399maint.PNG


  3. The most important block to configure is the AWS Lambda block. In order for your function to be successfully invoked, the block must specify the following:

    1. Your Amazon AWS Lambda integration account

    2. Your Lambda function

    3. The type of invocation you want

    4. The specific parameters from your function

      Scenario-Builder-AWS-Lambda-Block-Settings-3-5399maint.png


  4. When you are finished configuring your scenario, you will need to assign it to a scenario entry.

    CCA-Scenario-Entries-Chat-5399maint.PNG
    < Previous | Next >