We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any Idea How do I supply initial message ? I'm referring this link - https://docs.aws.amazon.com/connect/latest/APIReference/API_StartChatContact.html.
"InitialMessage": { "Content": "string", "ContentType": "string" }
I also tried this - #21 .
I can get Name or some value in amazon connect contact flows. Is there a specific way to get InitialMessage?
The text was updated successfully, but these errors were encountered:
You should be able to add an initial message by adding a field to the initiate chat function:
connect.ChatInterface.initiateChat({ name: customerName, initialMessage: "message here", username: username, region: ${region}, apiGatewayEndpoint: "https://${apiId}.execute-api.${region}.amazonaws.com/Prod", contactAttributes: JSON.stringify({ "customerName": customerName }), contactFlowId: "${contactFlowId}", instanceId: "${instanceId}" },successHandler, failureHandler)
You will then need to modify the startChat lambda function to pull the message off of the event body and pass it into the start chat api
Sorry, something went wrong.
Thanks @efh365 . This solution is now working. I added below code in front end side
contactAttributes: JSON.stringify({ initialMessage: "Test message here" })
No branches or pull requests
Any Idea How do I supply initial message ? I'm referring this link - https://docs.aws.amazon.com/connect/latest/APIReference/API_StartChatContact.html.
I also tried this - #21 .
I can get Name or some value in amazon connect contact flows. Is there a specific way to get InitialMessage?
The text was updated successfully, but these errors were encountered: