กําหนดเส้นทางทั้งหมดของผู้ใช้
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้อธิบายวิธีกําหนดและแมปเส้นทางของผู้ใช้แอป Google Chat เส้นทางของผู้ใช้คือชุดการดําเนินการและการโต้ตอบระหว่างผู้ใช้กับแอป Chat ที่ช่วยผู้ใช้ให้บรรลุเป้าหมาย กําหนดเส้นทางเหล่านี้ก่อนสร้างแอปแชทเพื่อระบุสิ่งต่อไปนี้
- กรณีที่ควรแสดงข้อความแสดงข้อผิดพลาด
- กรณีที่ควรแนะนำคำสั่งเพื่อช่วยผู้ใช้ใช้แอปแชท
- กรณีที่อาจทำให้โฟลว์ผู้ใช้ง่ายขึ้น
สร้างผังงานของเส้นทางของผู้ใช้ทั้งหมด
แผนภาพโฟลว์เป็นเครื่องมือที่มีประโยชน์ทั้งในด้านการแสดงภาพและการพิจารณาการโต้ตอบทั้งหมดของผู้ใช้กับแอป Chat หากแอปแชทของคุณทำงานร่วมกับบริการอื่นๆ ของ Google หรือบริการนอก Google โปรดระบุการโต้ตอบเหล่านี้ด้วย โดยหลักการแล้ว แผนภาพโฟลว์ควรแสดงการโต้ตอบที่เป็นไปได้ทั้งหมด หรือสำหรับเวิร์กโฟลว์ที่ซับซ้อนมากขึ้น ให้ใช้แผนภาพโฟลว์สำหรับเส้นทางของผู้ใช้แต่ละเส้นทาง
แผนภาพต่อไปนี้แสดงเส้นทางของผู้ใช้สำหรับแอป Chat ที่ช่วยผู้ใช้จัดการ Google ปฏิทินจาก Chat

แผนภาพก่อนหน้าแสดงขั้นตอนต่อไปนี้ของผู้ใช้ที่ต้องการใช้แอปแชทเพื่อตรวจสอบปฏิทิน
ผู้ใช้เพิ่มแอป Chat ไปยังพื้นที่ทำงาน
แอป Chat จะส่งข้อความต้อนรับที่แจ้งให้ผู้ใช้ให้สิทธิ์เข้าถึง
- หากผู้ใช้ปฏิเสธการให้สิทธิ์เข้าถึง ระบบจะส่งข้อความต้อนรับก่อนหน้านี้อีกครั้ง
- หากผู้ใช้ยินยอมให้สิทธิ์เข้าถึง ให้คลิกลงชื่อเข้าใช้
ระบบจะขอให้ผู้ใช้ลงชื่อเข้าใช้จากข้อความโต้ตอบ
- หากผู้ใช้ลงชื่อเข้าใช้ไม่ได้ ระบบจะส่งข้อความแสดงข้อผิดพลาดเพื่อขอให้ผู้ใช้ลองลงชื่อเข้าใช้อีกครั้ง
- หากผู้ใช้ลงชื่อเข้าใช้สำเร็จ ระบบจะส่งข้อความเกี่ยวกับการเริ่มต้นใช้งานซึ่งอธิบายวิธีใช้แอป Chat
ผู้ใช้พิมพ์ /checkCalendar
คำสั่งเครื่องหมายทับ
เพื่อดูกำหนดการของวันนี้จากปฏิทิน
- หากแอป Chat เรียกข้อมูลปฏิทินของผู้ใช้ไม่ได้ ระบบจะส่งข้อความแสดงข้อผิดพลาด
- หากสำเร็จ แอป Chat จะส่งกำหนดการของวันนี้ในข้อความการ์ด
เขียนเรื่องราวผู้ใช้เพื่อแนะนําเส้นทางของผู้ใช้
สตอรี่ผู้ใช้แสดงถึงเป้าหมายของผู้ใช้ และเขียนขึ้นเพื่อให้ผู้ใช้ ภารกิจ และวัตถุประสงค์ของสตอรี่ชัดเจน เรื่องราวผู้ใช้มีไว้เพื่อให้ผู้ใช้สามารถตีความได้หลากหลาย เนื่องจากมักจะมีวิธีมากกว่า 1 วิธีในการตอบสนองข้อกำหนดที่ระบุไว้ เรื่องราวผู้ใช้ช่วยให้คุณกำหนดเส้นทางที่ผู้ใช้ต้องทำตามเมื่อใช้แอป Chat
สตอรี่ผู้ใช้มีรูปแบบดังนี้ ในฐานะผู้ใช้ ฉันต้องการทํางานเพื่อให้บรรลุเป้าหมาย ในตัวอย่างก่อนหน้านี้ เรื่องราวผู้ใช้คือ ในฐานะผู้ปฏิบัติงานข้ามสายงาน ฉันต้องการตรวจสอบปฏิทินเพื่อให้สามารถทำงานร่วมกับผู้อื่นในโปรเจ็กต์
แอป Chat ส่วนใหญ่มีเรื่องราวผู้ใช้หลายเรื่อง ตัวอย่างเช่น สตอรี่ผู้ใช้อีกรายการสำหรับแอป Chat ตัวอย่างคือ ในฐานะผู้จัดการ ฉันต้องการกำหนดเวลาการประชุมรายสัปดาห์ที่มีผู้รายงานโดยตรงทั้งหมดเพื่อให้เราทำงานร่วมกันในโปรเจ็กต์ได้ สําหรับสตอรี่ผู้ใช้แต่ละรายการ ให้ระบุเส้นทางของผู้ใช้สําหรับแอป Chat และสร้างผังงานเพื่อระบุการโต้ตอบที่เป็นไปได้ทั้งหมดกับแอป Chat
ใส่คำอธิบาย
ใส่คำอธิบายประกอบที่อธิบายว่ารูปร่างใดแสดงถึงอินเทอร์แอกชันประเภทใดเพื่อช่วยให้ผู้อ่านเข้าใจเส้นทางของผู้ใช้ เช่น ระบุรูปร่างที่ไม่ซ้ำกันสำหรับจุดตัดสินใจของผู้ใช้ อินพุตของผู้ใช้ ผลลัพธ์ที่สำเร็จและไม่สำเร็จจากแอป Chat และข้อความจากแอป Chat
พิจารณาสถานการณ์ข้อผิดพลาดทั้งหมด
โปรดระบุสถานการณ์ข้อผิดพลาดในแผนที่เส้นทางของผู้ใช้เพื่อให้ผู้ใช้ไม่พบปัญหาขณะใช้งานแอปแชท ระบุสาเหตุที่ทำให้เกิดข้อผิดพลาด เขียนข้อความแสดงข้อผิดพลาดที่นําไปใช้ได้ และระบุวิธีที่ผู้ใช้อาจตอบสนองต่อข้อผิดพลาดเพื่อให้บรรลุเป้าหมาย เช่น "ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง ลองลงชื่อเข้าใช้อีกครั้ง"
ระบุข้อความที่แอป Chat ส่งถึงผู้ใช้
การโต้ตอบแต่ละครั้งควรจบลงด้วยข้อความจากแอป Chat ไปยังผู้ใช้ แม้ว่าจะเป็นเพียงข้อความที่ยืนยันว่าแอป Chat ดำเนินการตามคำขอของผู้ใช้เรียบร้อยแล้วก็ตาม เช่น "ยินดีต้อนรับสู่แอปการตั้งเวลา ฉันสามารถกำหนดเวลา กำหนดเวลาใหม่ หรือนำกิจกรรมออกจากปฏิทินของคุณได้ มาดูกำหนดการของวันนี้กันโดยพิมพ์ /checkCalendar
"
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-06 UTC
[null,null,["อัปเดตล่าสุด 2025-03-06 UTC"],[[["\u003cp\u003eDefine user journeys with flowcharts to visualize user interactions and potential pain points within your Google Chat app.\u003c/p\u003e\n"],["\u003cp\u003eUtilize user stories (As a \u003cem\u003euser\u003c/em\u003e, I want to \u003cem\u003edo a task\u003c/em\u003e, so I can \u003cem\u003eachieve a goal\u003c/em\u003e) to guide the development of user journeys and ensure alignment with user needs.\u003c/p\u003e\n"],["\u003cp\u003eAccount for all error scenarios within user journeys, crafting actionable error messages to help users recover and continue their workflow.\u003c/p\u003e\n"],["\u003cp\u003eEnsure each user interaction within the journey concludes with a message from the Chat app, providing feedback or guidance to the user.\u003c/p\u003e\n"],["\u003cp\u003eInclude a legend with your user journey flowcharts to clarify the meaning of different shapes and symbols, making them easier to understand.\u003c/p\u003e\n"]]],["Define user journeys as sets of actions between users and a Chat app to achieve goals. Create flowcharts to visualize all interactions, including those with external services. Write user stories in the format: \"As a *user*, I want to *do a task*, so I can *achieve a goal*.\" Include a legend for the flowchart. Map out error scenarios, defining the error, message, and user response. Detail each interaction with a message from the Chat app.\n"],null,["# Define all user journeys\n\nThis page describes how to define and map the user journeys of your\nGoogle Chat app. A *user journey* is a set of actions and\ninteractions between a user and a Chat app that helps\nthe user achieve a goal. Define these journeys before building the\nChat app to identify the following:\n\n- When to provide error messages.\n- When to suggest commands to help users use the Chat app.\n- Where the user flow might be simplified.\n\nCreate a flowchart of all user journeys\n---------------------------------------\n\nFlowcharts are useful tools for both visualizing and thinking through all user\nChat app interactions. If your\nChat app works with other Google services, or\nservices outside of Google, be sure to include these interactions too. Ideally,\nyour flowchart depicts every possible interaction, or for more complicated\nworkflows, a flowchart for every user journey.\n\nThe following flowchart shows the user journey for a\nChat app that helps people manage their\nGoogle Calendar from Chat:\n\nThe preceding diagram shows the following steps of a user wanting to use a\nChat app to check their Calendar:\n\n1. A user adds the Chat app to a space.\n\n2. The Chat app sends a welcome message that prompts\n the user to [authorize access](/workspace/chat/authenticate-authorize).\n\n - If the user refuses to authorize access, the previous welcome message is resent.\n - If the user agrees to authorize access, they click **Sign in**.\n3. The user is asked to sign in from a\n [dialog message](/workspace/chat/dialogs).\n\n - If the user is unable to sign in, an error message is sent asking the user to try signing in again.\n - If the user is able to successfully sign in, an onboarding message is sent that describes how to use the Chat app.\n4. The user types the `/checkCalendar`\n [slash command](/workspace/chat/commands)\n to get today's schedule from Calendar.\n\n - If the Chat app is unable to retrieve the user's calendar, an error message is sent.\n - If successful, the Chat app sends today's schedule in a card message.\n\nWrite user stories to guide your user journeys\n----------------------------------------------\n\nA *user story* represents a user goal, and is written so that the user, task,\nand purpose of the story is clear. User stories are meant to be open-ended\nbecause there's usually more than one way to satisfy the requirements that they\ndescribe. User stories help you set paths for users to follow as they work with\nChat app.\n\nUser stories have the following format: As a *user* , I want to *do a task* , so I\ncan *achieve a goal* . In the previous example, the user story is: As a\n*cross-functional worker* , I want to *check my calendar* so I can\n*collaborate on projects with others*.\n\nMost Chat apps have multiple user stories. For example, another\nuser story for the example Chat app is: As a *manager* ,\nI want to *schedule a weekly meeting that includes all my direct reports* , so we\ncan *collaborate on projects*. For each user story, identify the users' journey\nfor your Chat app and create a flowchart to identify\nall potential interactions with your Chat app.\n\nInclude a legend\n----------------\n\nTo help others read your user journeys, include a legend that describes which\nshape represents which type of interaction. For example, identify a unique shape\nfor user decision points, user input, successful and unsuccessful results from\nyour Chat app, and any messages from the\nChat app.\n\nAccount for all error scenarios\n-------------------------------\n\nTo ensure users never get stuck while working with your\nChat app, include error scenarios in your user journey\nmap. Define how the error occurs,\n[write an actionable error message](/workspace/chat/write-error-messages),\nand identify how the user might respond to the error in order to achieve their\ngoal. For example, \"Wrong username or password. Try signing in again.\"\n\nIdentify the messages your Chat app sends to users\n--------------------------------------------------\n\nEach interaction should end with a message from your\nChat app to the user, even if it's only a message\nconfirming that the Chat app successfully completed the\nuser's request. For example, \"Welcome to the scheduling app. I can schedule,\nreschedule, or remove events from your calendar. Take a look at today's schedule\nby typing `/checkCalendar`.\"\n\nRelated topics\n--------------\n\n- [Set up slash commands to interact with Google Chat users](/workspace/chat/slash-commands)\n- [Write an actionable error message](/workspace/chat/write-error-messages)\n- [Design user interactions](/workspace/chat/interactivity)"]]