Giter VIP home page Giter VIP logo

Comments (1)

spencerlepine avatar spencerlepine commented on June 17, 2024

Hi @ross-symbee,

Please see the following for more information about customizing the stock messages.

It is not clear where The chat has disconnected comes from. Please provide further details or a screenshot.

I am closing this issue as there is no bug/feature related to ChatJS. Please feel free to re-open or reach out with further questions.

Thanks,
Spencer

The chat has disconnected

It is not clear where The chat has disconnected comes from. Please provide further details or a screenshot, and confirm that it is not unique to your Connect Instance Contact Flow

For the Amazon Connect Hosted Widget, we currently translate the Chat has ended message into the following supported languages.

Chat has ended is translated client-side. In the open source ChatInterface GitHub code, this lies in the SystemMessage.js component [code ref].

Screenshot 2023-09-27 at 4 02 00 PM

The agent has disconnected

The agent has disconnected message is configured in your Amazon Connect Contact Flow. This is likely in the "Sample disconnect flow" where you can customize the system message.

MyUsername

Here is an example "Sample disconnect flow" contact flow JSON export (Import/Export documentation)

{"Version":"2019-10-30","StartAction":"f2277eda-f6eb-43c0-aac9-204e9c60074b","Metadata":{"entryPointPosition":{"x":14.4,"y":14.4},"ActionMetadata":{"4a411c55-322f-4306-8424-cf9fda709619":{"position":{"x":1946.4,"y":797.6}},"993e1553-7ddc-42a5-b152-ee955051a563":{"position":{"x":1148.8,"y":1590.4}},"b2697dc6-a18f-4a7e-93d6-4e7acfd2ec74":{"position":{"x":924,"y":1592}},"5735ecda-9db1-48a3-a3ae-90838b342c6b":{"position":{"x":1470.4,"y":796.8}},"0cc56c42-4d07-4986-9960-cf0b52005892":{"position":{"x":1476.8,"y":1344}},"965d95dd-5ffb-48ce-beed-645ecd94df25":{"position":{"x":904,"y":798.4},"dynamicParams":[]},"8daa6c48-affe-40f5-8627-bd2f26370f48":{"position":{"x":1160,"y":797.6},"conditionMetadata":[{"id":"93bfd24a-a5fd-4f09-a0ee-fa73cbb797a5","value":"1"},{"id":"dd54a357-e3bf-47d6-bcf1-8fad5ef890d3","value":"2"},{"id":"9ae16417-8a91-46ba-ba55-3b55014a9edd","value":"3"}]},"0a1b8531-08c2-400e-a30a-c60d8cf15123":{"position":{"x":1948.8,"y":984.8}},"99b031ed-b416-428e-8916-6d45d93391e1":{"position":{"x":1956,"y":1437.6}},"92144f99-b565-4216-b2f2-ac998c2f8991":{"position":{"x":1474.4,"y":986.4},"conditionMetadata":[{"id":"69f37688-2464-41da-996f-961c11d6a305","value":"1"},{"id":"6c7d35fc-97c4-447a-bcaf-43ca593461d3","value":"2"},{"id":"6d71e390-3f72-4d2c-bcaf-627fb568e1c1","value":"3"}]},"afa3794a-72f6-479f-8f16-b48b343e126d":{"position":{"x":1704.8,"y":990.4},"parameters":{"QueueId":{"displayName":"BasicQueue"}},"queue":{"text":"BasicQueue"}},"a7c3bfbc-6f17-4851-921c-097740a746c1":{"position":{"x":661.6,"y":796.8},"conditions":[],"conditionMetadata":[{"id":"af5f67d8-53ce-4897-8790-9e3bb970c7d2","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"Y"}]},"8b170d37-9ee6-4fea-b5d0-6fb2df662987":{"position":{"x":892,"y":228}},"afd69f71-a5c0-4df2-88b1-68611856b3fc":{"position":{"x":896,"y":416.8}},"8e32b3b8-98d0-4614-a138-e9999a55b382":{"position":{"x":1165.6,"y":264}},"3ba86427-44ee-4c18-9c11-f33ba8e65942":{"position":{"x":889.6,"y":20.8}},"616f94d7-de1d-4b2a-b503-cf37b9f9f6b5":{"position":{"x":1265.6,"y":8}},"55224462-3ed7-4282-9d88-a96b194063ab":{"position":{"x":393.6,"y":476.8},"conditions":[],"conditionMetadata":[{"id":"719a7fa1-9d16-49f1-9f61-7a8ba18ea111","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"NULL"}]},"1d094c52-c5bf-4708-bcb6-2defb87d0de5":{"position":{"x":633.6,"y":316.8}},"1d146e02-1a51-4eae-bf06-c16c7cba1a72":{"position":{"x":798.4,"y":584}},"a13bca09-b811-4bb6-b040-3b3fed9a8e5e":{"position":{"x":1097.6,"y":625.6}},"cc927fd6-a3fd-437a-81d3-c38a5130468d":{"position":{"x":634.4,"y":20.8},"parameters":{"TimeLimitSeconds":{"unit":60}},"timeoutUnit":{"display":"Minutes","value":"minute"}},"f2277eda-f6eb-43c0-aac9-204e9c60074b":{"position":{"x":164,"y":20.8},"conditions":[],"conditionMetadata":[{"id":"5208b5b0-2919-40ce-ba24-b285c1ed096e","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"CHAT"},{"id":"4034b98b-a8b7-484f-b4fb-5437fd072405","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"VOICE"},{"id":"a81f3bf2-7b75-4ee9-8e5e-16844c3526cc","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"TASK"}]},"44c598fe-2a67-4522-b3e9-6b6c09ae96b9":{"position":{"x":396.8,"y":22.4}}},"Annotations":[],"name":"Sample disconnect flow","description":"Enables customer to transfer to another flow after the agent has disconnected.","type":"contactFlow","status":"published","hash":{}},"Actions":[{"Parameters":{},"Identifier":"4a411c55-322f-4306-8424-cf9fda709619","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{},"Identifier":"993e1553-7ddc-42a5-b152-ee955051a563","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{"Text":"Thank you for calling us."},"Identifier":"b2697dc6-a18f-4a7e-93d6-4e7acfd2ec74","Type":"MessageParticipant","Transitions":{"NextAction":"993e1553-7ddc-42a5-b152-ee955051a563"}},{"Parameters":{"Text":"We are so happy that your experience was great. We hope you have a wonderful day. Good buy."},"Identifier":"5735ecda-9db1-48a3-a3ae-90838b342c6b","Type":"MessageParticipant","Transitions":{"NextAction":"4a411c55-322f-4306-8424-cf9fda709619"}},{"Parameters":{"Text":"No entry was received."},"Identifier":"0cc56c42-4d07-4986-9960-cf0b52005892","Type":"MessageParticipant","Transitions":{"NextAction":"8daa6c48-affe-40f5-8627-bd2f26370f48"}},{"Parameters":{"Attributes":{"DisconnectFlowRun":"Y"},"TargetContact":"Current"},"Identifier":"965d95dd-5ffb-48ce-beed-645ecd94df25","Type":"UpdateContactAttributes","Transitions":{"NextAction":"8daa6c48-affe-40f5-8627-bd2f26370f48","Errors":[{"NextAction":"8daa6c48-affe-40f5-8627-bd2f26370f48","ErrorType":"NoMatchingError"}]}},{"Parameters":{"Text":"We appreciate your call. If you were happy with your service, press 1. If there was some room for improvement, press 2. If your issue is not resolved or you would like more help, press 3.","StoreInput":"False","InputTimeLimitSeconds":"5"},"Identifier":"8daa6c48-affe-40f5-8627-bd2f26370f48","Type":"GetParticipantInput","Transitions":{"NextAction":"0cc56c42-4d07-4986-9960-cf0b52005892","Conditions":[{"NextAction":"5735ecda-9db1-48a3-a3ae-90838b342c6b","Condition":{"Operator":"Equals","Operands":["1"]}},{"NextAction":"92144f99-b565-4216-b2f2-ac998c2f8991","Condition":{"Operator":"Equals","Operands":["2"]}},{"NextAction":"92144f99-b565-4216-b2f2-ac998c2f8991","Condition":{"Operator":"Equals","Operands":["3"]}}],"Errors":[{"NextAction":"0cc56c42-4d07-4986-9960-cf0b52005892","ErrorType":"InputTimeLimitExceeded"},{"NextAction":"0cc56c42-4d07-4986-9960-cf0b52005892","ErrorType":"NoMatchingCondition"},{"NextAction":"0cc56c42-4d07-4986-9960-cf0b52005892","ErrorType":"NoMatchingError"}]}},{"Parameters":{},"Identifier":"0a1b8531-08c2-400e-a30a-c60d8cf15123","Type":"TransferContactToQueue","Transitions":{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","Errors":[{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","ErrorType":"QueueAtCapacity"},{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","ErrorType":"NoMatchingError"}]}},{"Parameters":{},"Identifier":"99b031ed-b416-428e-8916-6d45d93391e1","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{"Text":"We would love to resolve your issue. If you would like to speak to another agent, press 1. If you would like to speak to a supervisor, press 2. If you would like to hang up, press 3.","StoreInput":"False","InputTimeLimitSeconds":"5"},"Identifier":"92144f99-b565-4216-b2f2-ac998c2f8991","Type":"GetParticipantInput","Transitions":{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","Conditions":[{"NextAction":"afa3794a-72f6-479f-8f16-b48b343e126d","Condition":{"Operator":"Equals","Operands":["1"]}},{"NextAction":"afa3794a-72f6-479f-8f16-b48b343e126d","Condition":{"Operator":"Equals","Operands":["2"]}},{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","Condition":{"Operator":"Equals","Operands":["3"]}}],"Errors":[{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","ErrorType":"InputTimeLimitExceeded"},{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","ErrorType":"NoMatchingCondition"},{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","ErrorType":"NoMatchingError"}]}},{"Parameters":{"QueueId":"arn:aws:connect:us-west-2:990999614922:instance/3203af10-3e0d-4d59-9452-6543250cf7f6/queue/6ae28bd5-beaf-44fd-85b9-787497a57de8"},"Identifier":"afa3794a-72f6-479f-8f16-b48b343e126d","Type":"UpdateContactTargetQueue","Transitions":{"NextAction":"0a1b8531-08c2-400e-a30a-c60d8cf15123","Errors":[{"NextAction":"99b031ed-b416-428e-8916-6d45d93391e1","ErrorType":"NoMatchingError"}]}},{"Parameters":{"ComparisonValue":"$.Attributes.DisconnectFlowRun"},"Identifier":"a7c3bfbc-6f17-4851-921c-097740a746c1","Type":"Compare","Transitions":{"NextAction":"965d95dd-5ffb-48ce-beed-645ecd94df25","Conditions":[{"NextAction":"b2697dc6-a18f-4a7e-93d6-4e7acfd2ec74","Condition":{"Operator":"Equals","Operands":["Y"]}}],"Errors":[{"NextAction":"965d95dd-5ffb-48ce-beed-645ecd94df25","ErrorType":"NoMatchingCondition"}]}},{"Parameters":{"Text":"The timer has expired. Disconnecting."},"Identifier":"8b170d37-9ee6-4fea-b5d0-6fb2df662987","Type":"MessageParticipant","Transitions":{"NextAction":"8e32b3b8-98d0-4614-a138-e9999a55b382"}},{"Parameters":{"Text":"An error occurred."},"Identifier":"afd69f71-a5c0-4df2-88b1-68611856b3fc","Type":"MessageParticipant","Transitions":{"NextAction":"8e32b3b8-98d0-4614-a138-e9999a55b382"}},{"Parameters":{},"Identifier":"8e32b3b8-98d0-4614-a138-e9999a55b382","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{"Text":"You are now being transferred to queue to chat with another agent."},"Identifier":"3ba86427-44ee-4c18-9c11-f33ba8e65942","Type":"MessageParticipant","Transitions":{"NextAction":"616f94d7-de1d-4b2a-b503-cf37b9f9f6b5"}},{"Parameters":{},"Identifier":"616f94d7-de1d-4b2a-b503-cf37b9f9f6b5","Type":"TransferContactToQueue","Transitions":{"NextAction":"8e32b3b8-98d0-4614-a138-e9999a55b382","Errors":[{"NextAction":"8e32b3b8-98d0-4614-a138-e9999a55b382","ErrorType":"QueueAtCapacity"},{"NextAction":"8e32b3b8-98d0-4614-a138-e9999a55b382","ErrorType":"NoMatchingError"}]}},{"Parameters":{"ComparisonValue":"$.Agent.ARN"},"Identifier":"55224462-3ed7-4282-9d88-a96b194063ab","Type":"Compare","Transitions":{"NextAction":"1d094c52-c5bf-4708-bcb6-2defb87d0de5","Conditions":[{"NextAction":"1d146e02-1a51-4eae-bf06-c16c7cba1a72","Condition":{"Operator":"Equals","Operands":["NULL"]}}],"Errors":[{"NextAction":"1d094c52-c5bf-4708-bcb6-2defb87d0de5","ErrorType":"NoMatchingCondition"}]}},{"Parameters":{},"Identifier":"1d094c52-c5bf-4708-bcb6-2defb87d0de5","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{},"Identifier":"1d146e02-1a51-4eae-bf06-c16c7cba1a72","Type":"TransferContactToQueue","Transitions":{"NextAction":"a13bca09-b811-4bb6-b040-3b3fed9a8e5e","Errors":[{"NextAction":"a13bca09-b811-4bb6-b040-3b3fed9a8e5e","ErrorType":"QueueAtCapacity"},{"NextAction":"a13bca09-b811-4bb6-b040-3b3fed9a8e5e","ErrorType":"NoMatchingError"}]}},{"Parameters":{},"Identifier":"a13bca09-b811-4bb6-b040-3b3fed9a8e5e","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{"TimeLimitSeconds":"900","Events":["CustomerReturned"]},"Identifier":"cc927fd6-a3fd-437a-81d3-c38a5130468d","Type":"Wait","Transitions":{"NextAction":"afd69f71-a5c0-4df2-88b1-68611856b3fc","Conditions":[{"NextAction":"3ba86427-44ee-4c18-9c11-f33ba8e65942","Condition":{"Operator":"Equals","Operands":["CustomerReturned"]}},{"NextAction":"8b170d37-9ee6-4fea-b5d0-6fb2df662987","Condition":{"Operator":"Equals","Operands":["WaitCompleted"]}}],"Errors":[{"NextAction":"afd69f71-a5c0-4df2-88b1-68611856b3fc","ErrorType":"NoMatchingError"}]}},{"Parameters":{"ComparisonValue":"$.Channel"},"Identifier":"f2277eda-f6eb-43c0-aac9-204e9c60074b","Type":"Compare","Transitions":{"NextAction":"1d094c52-c5bf-4708-bcb6-2defb87d0de5","Conditions":[{"NextAction":"44c598fe-2a67-4522-b3e9-6b6c09ae96b9","Condition":{"Operator":"Equals","Operands":["CHAT"]}},{"NextAction":"a7c3bfbc-6f17-4851-921c-097740a746c1","Condition":{"Operator":"Equals","Operands":["VOICE"]}},{"NextAction":"55224462-3ed7-4282-9d88-a96b194063ab","Condition":{"Operator":"Equals","Operands":["TASK"]}}],"Errors":[{"NextAction":"1d094c52-c5bf-4708-bcb6-2defb87d0de5","ErrorType":"NoMatchingCondition"}]}},{"Parameters":{"Text":"The agent has disconnected. If the customer sends a message in the next 15 minutes, the chat will pick up where it left off."},"Identifier":"44c598fe-2a67-4522-b3e9-6b6c09ae96b9","Type":"MessageParticipant","Transitions":{"NextAction":"cc927fd6-a3fd-437a-81d3-c38a5130468d"}}]}

from amazon-connect-chatjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.