互动:对于大多数视图,互动包括通过直接 API 调用来检测意图请求计数和通过集成(非 Google 助理)进行的间接调用。
会话:会话由提供给互动的会话 ID 决定。
要使此指标有意义,必须创建唯一的会话 ID。对于 X 轴上的每一小时,会话指标显示的是该小时内的有效会话数。如果某个会话超过了一个小时的边界,则系统会在该会话处于有效状态的每一小时内进行计数。因此,图表上所有每小时会话值的总和可能会大于整个时间段内的实际会话总数。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eThe Dialogflow Console's analytics page provides data on agent requests and responses, which can be used to evaluate and improve agent performance.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access various data views, filtered by time range, and all displayed statistics are calculated hourly.\u003c/p\u003e\n"],["\u003cp\u003eCommon metrics displayed include interactions, sessions, and exit percentage, which provide insight into user engagement and session completion.\u003c/p\u003e\n"],["\u003cp\u003eThe analytics page offers multiple views, such as Overall, Status codes, Integrations, and Intent Path, each focusing on different data aspects and metrics.\u003c/p\u003e\n"],["\u003cp\u003eData for the Google Assistant integration is not supported, and there may be a delay of up to one day for data to appear in analytics.\u003c/p\u003e\n"]]],[],null,["# Analytics\n\nThe Dialogflow Console provides an analytics page\nthat shows various agent request and response data statistics.\nThis data helps you assess how your agent is being used in production\nand may be used to improve your agent.\n\nYou can select from multiple data views and filter by time range.\nThe statistics shown on all charts are computed hourly.\nFor most views, only successful request data for the V2 API are included.\n\nOpen the analytics page\n-----------------------\n\nTo open the analytics page:\n\n1. Go to the [Dialogflow ES console](https://dialogflow.cloud.google.com).\n2. Select an agent.\n3. Click **Analytics** in the left sidebar menu.\n4. Choose the **New** tab at the top of the page to select the new user interface described in this guide. You can also go back to the **Legacy** UI if you prefer that.\n\nCommon metrics\n--------------\n\nThe following common metrics are displayed on multiple chart types:\n\n- **Interactions** : For most views, *interactions* include detect intent request counts via direct API calls and indirect calls via integrations (except for Google Assistant).\n- **Sessions** : *Sessions* are determined by the session ID provided to interactions. You must create unique session IDs for this metric to be meaningful. For each hour on the x-axis, the *sessions* metric shows a count of active sessions during that hour. If a session crosses an hour boundary, it will be counted for each hour it is active. Therefore, the sum of all hourly session values on a chart may be larger than the total number of actual sessions during the entire time period.\n- **Exit %**: The percentage of sessions that ended with an intent during the selected time range.\n\nViews\n-----\n\nThere are multiple views that you can select on the analytics page.\nEach view differs by the type of data, the data filter, or the chart type.\nThe following subsections describe each view.\n\n### Overall view\n\nThis view charts session and interaction counts\nfor all requests.\n\n### Status codes view\n\nThis view charts interaction counts\nfor all requests\nby status code.\nThis includes all V2 API requests, whether successful or not.\nHovering your mouse over a data point shows a popup\nwith individual status code counts at that point.\nFor example:\n\n- **OK**\n- **PERMISSION_DENIED**\n- **INTERNAL**\n- **DEADLINE EXCEEDED**\n\n### Integrations view\n\nThis view charts session and interaction counts\nfor all requests (except Google Assistant)\nby\n[integration type](/dialogflow/docs/integrations).\nHovering your mouse over a data point shows a popup\nwith integration-specific counts at that point.\nAPI calls are shown as \"api\".\n\n### Webhook view\n\nThis view charts session and interaction counts\nfor all requests\nby number of requests with and without\n[webhook calls](/dialogflow/docs/fulfillment-webhook).\nHovering your mouse over a data point shows a popup\nwith individual counts at that point:\n\n- **Webhook called**\n- **Webhook not called**\n\n### Languages view\n\nThis view charts session and interaction counts\nfor all requests\nby\n[language](/dialogflow/docs/agents-multilingual).\nHovering your mouse over a data point shows a popup\nwith language-specific counts at that point.\n\n### Knowledge view\n\nThis view charts session and interaction counts\nfor\n[knowledge request](/dialogflow/docs/knowledge-connectors)\nby knowledge result data.\nHovering your mouse over a data point shows a popup\nwith individual counts at that point:\n\n- **Knowledge had result**\n- **Knowledge was used**\n- **Knowledge had primary result**\n\n### Sentiment view\n\nThis view charts session and interaction counts\nfor sentiment requests\nby sentiment result data.\nHovering your mouse over a data point shows a popup\nwith individual counts at that point.\n\n### Speech view\n\nThis view charts session and interaction counts\nfor speech requests\nby speech-to-text and text-to-speech.\nHovering your mouse over a data point shows a popup\nwith individual counts at that point:\n\n- **Speech to text**\n- **Text to speech**\n\n### Intents view\n\nThis view shows a table of [common metric values](#metrics)\nfor all requests by intent.\n\n### Intent path view\n\nThis view graphs *intent nodes* with connecting *intent path lines* .\nEach intent in your agent has one node.\nEach intent path line shows a frequency value for how often\none intent follows another intent in sessions for the selected time period.\nThe **session start** node has intent path lines to the initial intent matches.\nEach intent node has a frequency value inside its node box\nthat shows how often the intent ended a session for the selected time period.\nFor example, consider that you have three intents: **A** , **B** , and **C**:\n\n- If **A** is always the first intent matched in a session, the chart will show a 100% intent path line from **session start** to **A**.\n- If **B** is matched 30% of the time that **A** was matched in the previous interaction in the session, the chart will show a 30% intent path line from **A** to **B**.\n- If **C** is matched 70% of the time that **A** was matched in the previous interaction in the session, the chart will show a 70% intent path line from **A** to **C**.\n- If 40% of sessions end by matching **C** , the **C** intent node box will contain a 40% value.\n\nHovering your mouse over an intent node shows a popup\nwith metrics for the intent:\n\n- **Sessions start with this intent**: The count and percentage of sessions that started with this intent.\n- **Interactions matched this intent**: The count and percentage of interactions that matched this intent.\n- **Sessions end with this intent**: The count and percentage of sessions that ended with this intent.\n\nHovering your mouse over an intent path value or session start node\nalso shows additional information.\n\n### Session path view\n\nSimilar to the intent path view,\nthis view graphs *intent nodes* with connecting *intent path lines* .\nHowever, the intent path lines in this view show the frequencies\nas found in *complete paths* taken by common sessions for the agent.\nOne intent node may appear multiple times\nif it is matched in multiple paths or multiple times in a single path.\nYou can interact with this chart by clicking intent nodes to expand them.\n\nHovering your mouse over an intent node shows a popup\nwith metrics for the intent:\n\n- **Sessions followed this path prefix**: The count and percentage of sessions that followed the path up to the intent node.\n- **Ended at this point**: The percentage of sessions that ended on the path up to the intent node.\n\nAdditional data from Stackdriver\n--------------------------------\n\nIn addition to the data provided by the analytics page,\nyou can query for other types of data using Stackdriver.\nSee:\n\n- [`tag_consumed_api`](https://cloud.google.com/monitoring/api/resources#tag_consumed_api)\n- [Creating a Dashboard with Stackdriver SLI Monitoring Metrics](https://medium.com/google-cloud/creating-a-dashboard-with-stackdriver-sli-monitoring-metrics-eaf6d19386de)\n\nLimitations\n-----------\n\nThe following limitations apply:\n\n- [Google Assistant integration](/dialogflow/es/docs/integrations/aog) data is not supported.\n- It can take up to a day for data to appear in analytics."]]