[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Airline support prebuilt agent\n\nThe airline support\n[playbook-based prebuilt agent](/dialogflow/cx/docs/concept/playbook/prebuilt)\nprovides flight booking with geolocation.\n\nSample dialogs\n--------------\n\nThe following sample dialogs demonstrate common scenarios handled by this\nprebuilt agent.\n\n### Flight search\n\nThe user wants to search for flights.\nThe agent asks the user for their origin city, destination, and departure date.\nThe user responds with these details.\nThe agent presents a list of flights, and prompts the user to select an option.\nThe user chooses the cheapest flight.\nThe agent confirms the booking and provides a booking number.\n\nBasic setup\n-----------\n\nTo set up this prebuilt agent:\n\n1. [Import the prebuilt agent](/dialogflow/cx/docs/concept/playbook/prebuilt#import).\n2. Configure the provided [tools](/dialogflow/cx/docs/concept/playbook/tool) with your external services, see [Tool setup](#tool-setup).\n\nTool setup\n----------\n\nThis agent includes [tools](/dialogflow/cx/docs/concept/playbook/tool) that are used\nto integrate with external services.\n\n### Flight Search\n\nThe `getGeolocation` tool uses a function call to determine the user's location\nto automatically input the origin city for the flight search.\nThe output parameters for this tool include:\n\n- city (required): City where the user is currently located.\n- country (required): Country where the user is currently located.\n- state (required): State or province where the user is currently located.\n- road (optional): Closest major road to the user's approximate street address.\n- county (optional): County where the user is currently located, if it exists.\n- country-code (optional): Two-letter code associated with the country where the user is located.\n- postcode (optional): ZIP code associated with the user's approximate street address.\n- ISO3166-2-lvl4 (optional): Alphanumeric code used to identify the specific administrative subdivision (for example: state, province, territory) of the country where the user is currently located.\n\nThe `getFlights` tool generates a fictional list of flights based on the\norigin city, destination, and departure date.\nThe tool returns a custom payload response which includes\na table with flight timings and prices.\nThis custom payload is used by the UI to display\nthe flights in rich content form.\n\nComplete\n--------\n\nYour agent and its integrations should now be set up and ready to test."]]