Dean,
I think the challenge is that the callout to the lambda is a function of your Lex bot itself, when a particular intent is recognized and a slot is triggered from the intent the lambda is called. All of this happens outside of the visibility of PureCloud invocation of the Lex bot. I'm also not sure that PureCloud is setup to process the SSML response supported by the Lambda (someone else is going to need to respond to this point). Lambdas that are invoked and return back a text response as the slot output SHOULD behave as normal within the call flow.
A very near term alternative to this is to invoke the lambda directly from the PureCloud call flow. In the next couple weeks we will be releasing support for invoking lambdas directly as custom data actions (similar to Salesforce/Zendesk/MSDynamics/Web Service Data Actions). This will allow the intents and slots to processed within your call flow as they currently are, then invoke the lambda as a data action to achieve the same basic end result.
Lambda data action support will be announced through the PureCloud platform release notes and will be available to all PureCloud 1, 2, and 3 orgs.
Let me know if there's additional questions on this.
------------------------------
Richard Schott
Genesys - Employees
------------------------------
Original Message:
Sent: 09-26-2018 14:09
From: Dean Thames
Subject: Lex/Lambda Response Configuration / Dialog Action
Hello All,
Looking for some documentation or guidance or tips (or breadcrumbs perhaps )on how to configure the purecloud Lex integration to accept a response back from Lex via a Lambda dialog action. I looked over on the developer forum but not seeing anything as of yet.
Sample use case might be an api or db call from lambda via a lex intent using the below response format:
Lambda Function Input Event and Response Format - Amazon Lex
Thanks!
------------------------------
Dean Thames
Koch Business Solutions
------------------------------