@startujn render { direction: down; arrow_spacing: 24 } journey SUPPORT "Support chat hands over to a person" description: "A bot answers, then a person takes over with the transcript, in the chat or by email" unique_id_friendly: support_chat start from_page { description: "Help button on any page" } view chat { type: drawer; title: "Help chat"; description: "Opens over any page" } action ask_bot { title: "Find an answer"; description: "Gives up after two misses" } system bot { type: external; title: "Support bot"; host: bot.ai.example; description: "Answers from the help articles" } end bot_solved { type: success; description: "Answered by the bot" } action hand_over { title: "Hand over to a person"; description: "Support hours Mon-Fri 8:00-18:00 CET" } action queue_up { title: "Join the queue" } actor agent { title: "Support agent"; role: Support team } view waiting { type: waiting; title: "Waiting for an agent"; description: "Place in line" } view live { type: drawer; title: "Chat with an agent"; description: "Same panel, a person answers" } end solved { type: success; description: "Answered in the chat" } view leave_msg { type: drawer; title: "Leave a message"; description: "We answer by email" } action ticket { title: "Open an email ticket"; description: "Keeps the transcript and summary" } action ack { type: message; title: "Ticket received"; channel: email; description: "The answer follows by email" } end by_email { type: success; description: "Request kept, answer by email" } from_page --> chat chat --> ask_bot : [Send] { payload: [question] } chat -x-> ask_bot : [Not helpful] { payload: [feedback] } ask_bot -left-> bot { payload: [question, transcript] } bot ..> ask_bot { payload: [answer, bot_summary] } ask_bot ..> chat : answer found ask_bot --> hand_over : gives up { payload: [transcript, bot_summary] } chat --> bot_solved : [This helped] chat --> hand_over : [Talk to a person] { payload: [transcript, bot_summary] } hand_over --> queue_up : in support hours hand_over --> leave_msg : outside support hours { payload: [transcript, bot_summary] } queue_up --> agent { payload: [transcript, bot_summary] } queue_up --> waiting agent --> live : [Join chat] live --> solved : [End chat] waiting --> ticket : [Close chat] { payload: [transcript, bot_summary] } leave_msg --> ticket : [Send] { payload: [note] } ticket --> ack ack --> by_email @endujn