![]() This script is called when a session changes status (when pre-form is filled in by the customer) Say 'quit' to end session." ĪddChatMessage(sessionId, message, toCustomer, botName, 0, "" ) Integer sessionId = ed.getInputValue("chatSession.id").toInteger() String botName = ed.getInputValue("chatTopic.botName") webhooks for chatSession.created are dispatched.all CRMScript triggers defined for the Chat Session Created event are run.In addition to the bot script, these things also happen: If you do nothing, then the session goes to the queue, waiting for a human - or to the pre-chat form (if configured). This keeps the session off the queue and skips any pre-chat form. Posting a message will set the chat session status to 6 (user last) since the bot was the last to speak. addChatMessage(Integer sessionId, String message, Integer type, String author, Integer specialType, String specialParams, DateTime whenPosted) The bot can post messages at this point, to say welcome. chatSession.status - state of new session.chatSession.topicId - topic the session belongs to.chatSession.id - session has been saved/created at this point.Bot Session CreatedĬalled when a new session starts on a channel with the bot activated. The user may re-activate the chat from this state, but this cannot be detected until the user sends a message. When the session is in this state, the form fields are displayed to the user. If a post-chat form is configured, then the form is displayed when the state is set to Finished(7). If the bot says hello before the session reaches In-Queue(4), the session will move to state UserLast(6), and skip the FAQ and pre-chat-form status. When the session is In-Queue, the bot should say hello. If the user clicks No, then the session is state forwarded from FAQ(2) to In-Queue(4). The chat system will look up a suitable FAQ and send that as a response (if a match is found), then ask if the FAQ is ok. The user's first message will trigger the bot message received script. If a FAQ category is configured, this will show the FAQ prompt and wait for the user's question. This will prompt the user to fill in fields. If a pre-chat form is configured, this will be the first state. However, it is possible to have the pre-chat forms appear first, then the bot, then the human - it just requires a bit of care when programming the bot. Usually, the bot goes first, and then if the bot fails to come up with an answer, the session is handed off to a human, and then the pre-chat form happens. When the bot hands off the session to humans, the session may go to offline status because there are no humans available. The bot prevents the session from going to the offline form state since the bot is always present. When a bot is active, the bot script takes over, and the message is not shown in the queue. Take back your online privacy today - download Session.Sessions are created when a customer connects to the chat service.ĭepending on how the channel is configured, the initial state may be: Session is built and maintained by the Loki Foundation, Australia’s first privacy tech not-for-profit organization. Session is free as in free speech, free as in free beer, and free of ads and trackers. Free and open-source: Don’t take our word for it - check Session's code yourself.Multi-device syncing: One Session ID for your phone and computer.Secure attachments: Share voice snippets, photos, and files with Session's secure encryption and privacy protections.Closed groups: Private, end-to-end encrypted group chats for up to 10 people. ![]() IP address protection: Device IP addresses are never exposed to the person you're talking to or the servers holding your data. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |