Skip to content
New issue

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

update chat-interface bundle file for new widget Interactive Messages #115

Merged

Conversation

spencerlepine
Copy link
Contributor

Description

Update amazon-connect-chat-interface.js bundle file for new QuickReply and Carousel interactive messages components.

Reference

Testing

ChatInterfaceProdGitHubTest.mov
GitHubChatInterfaceQuickReplyTest.mov

QuickReply

image

Template

{
    "templateType":"QuickReply",                         (mandatory)
    "version":"1.0",                                     (mandatory)
    "data":{
        "content": {
            "title": "How was your experience?",         (mandatory)
            "elements": [                                (mandatory, 2-5 items)
                {
                    "title": "Great!"
                },
                {
                    "title": "Good"
                },
                {
                    "title": "Ok"
                },
                {
                    "title": "Poor"
                },
                {
                    "title": "Terrible!"  (1-200 characters)
                }
            ]
        }
    }
}

Component Layout

image

Carousel

image

Template:

{
    version: "1.0",
    templateType: "Carousel",
    data: {
        content: {
            ...
            title: "View our popular destinations",
            elements: [
            {
                version: "1.0",
                templateType: "ListPicker",
                templateIdentifier: "<UUID>" // used to identify which message user interacts with
                data: {
                    content: {
                        title: "Hotel Gabonzo Suite",
                        subtitle: "Select an option:",
                        elements: [
                            {
                                title: "View Listing",
                                type: "hyperlink",                      <-- NEW
                                url: "https://hotels.com/gobonza"       <-- NEW
                            },
                            {
                                title: "AnotherPanelElementTitle",
                           }
                        ]
                    }
                }
            }
            ]
        }
    }
}

Outgoing JSON:

{
  "Content":"{\"templateIdentifier\":\"carouselPicker0001\",\"listTitle\":\"Flight\",\"selectionText\":\"View All Destinations\"}",
  "ContentType":"text/plain",
  "ClientToken":"68b2e8d2-1768-4497-bc8d-05f08eeb874d"
}

End-to-end UI

image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@spencerlepine spencerlepine added the 🚀 Feature New feature implementation label Jun 16, 2023
@spencerlepine spencerlepine force-pushed the spenlep/additional-interactive-msg-bundle-file branch from f222b6c to 7460b92 Compare June 19, 2023 18:34
@spencerlepine spencerlepine merged commit e531864 into master Jun 19, 2023
@spencerlepine spencerlepine deleted the spenlep/additional-interactive-msg-bundle-file branch September 27, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature New feature implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants