تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يتيح لك المحاكي في وحدة تحكّم المهام
اختبار الإجراء من خلال واجهة ويب سهلة الاستخدام تتيح لك
محاكاة الأجهزة وإعداداتها. يمكنك أيضًا الوصول إلى معلومات تصحيح الأخطاء، مثل الطلب والردّ اللذان يتلقّاهما طلبك ويرسلانه.
لاختبار "مهمة اللوحة التفاعلية" في المحاكي، عليك تحديد الخيار
الشاشة الذكية أو الهاتف. تتيح لك هذه الخيارات الاطّلاع على كيفية
ظهور الإجراء الخاص بك على الأجهزة المزوّدة بشاشات.
لاستخدام المحاكي، اتبع الخطوات التالية:
احرص على نشر أحدث إصدار من الرمز عبر أداة تعديل الرموز المضمّنة في Dialogflow.
ضمن الإدخال المقترَح، انقر على شريحة الاقتراحات بعنوان Talk to my
test app لبدء محادثة مع وكيلك. يمكنك أيضًا كتابة Talk
to my test app والضغط على Enter في حقل Input (الإدخال).
تصحيح أخطاء الإجراء
تعرض علامة التبويب تصحيح الأخطاء في المحاكي الحمولة الفعلية التي يرسلها "مساعد Google"
إلى عملية التنفيذ في العنصر assistantToAgentJson
(يمكنك الاطّلاع على المستندات المرجعية للطلب)
والاستجابة من عملية التنفيذ في كائن agentToAssistant
(اطّلِع على المستندات المرجعية بشأن الاستجابة).
لنسخ معلومات تصحيح الأخطاء إلى الحافظة، انقر على رمز الحافظة
في أعلى يسار لوحة معلومات تصحيح أخطاء JSON.
يمكنك أيضًا استخدام أدوات مطوري البرامج في Chrome
لتصحيح أخطاء إطار iframe الذي يستضيف تطبيق الويب على صفحة المحاكي على الويب.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe Actions console simulator provides a web interface for testing Actions, offering device simulation and debug information access.\u003c/p\u003e\n"],["\u003cp\u003eTo test Interactive Canvas Actions, select either the Smart Display or Phone option for device surface visualization.\u003c/p\u003e\n"],["\u003cp\u003eDebugging tools include access to request/response payloads in the debug tab and Chrome DevTools for web app debugging within the simulator.\u003c/p\u003e\n"],["\u003cp\u003eInitiating a conversation with your agent within the simulator is achieved by selecting the "Talk to my test app" suggestion or manually typing the phrase.\u003c/p\u003e\n"],["\u003cp\u003eEnsuring the latest code deployment and navigating to the "Test" section within the Actions console are prerequisites for simulator usage.\u003c/p\u003e\n"]]],[],null,["# Actions simulator (Dialogflow)\n\nThe simulator in the [Actions console](https://console.actions.google.com)\nlets you test your Action through an easy-to-use web interface that lets you\nsimulate hardware devices and their settings. You can also access debug\ninformation such as the request and response that your fulfillment receives\nand sends.\n\nTo test your Interactive Canvas Action in the simulator, you should select either\nthe **Smart Display** or **Phone** option. These options allow you to see how\nyour Action appears on devices with screens.\n| **Note:** Interactive Canvas currently only works on Android phones.\n\nTo use the simulator, follow these steps:\n\n1. Make sure the most recent version of your code is deployed through Dialogflow's inline code editor.\n2. Navigate to the [Actions console](https://console.actions.google.com).\n3. Click **Test** in the top menu.\n4. Choose **Smart Display** or **Phone** under **Surface**.\n\n5. Under **Suggested input** , click the suggestion chip that says `Talk to my\n test app` to begin a conversation with your agent. You can also type `Talk\n to my test app` and press enter in the **Input** field.\n\nDebug your Action\n-----------------\n\nThe **debug** tab in the simulator shows the actual payload the Google Assistant\nsends to your fulfillment in the `assistantToAgentJson` object\n(see the [request](/assistant/conversational/webhook/reference/rest/Shared.Types/AppRequest) reference documentation)\nand the response from your fulfillment in the `agentToAssistant` object\n(see the [response](/assistant/conversational/webhook/reference/rest/Shared.Types/AppResponse)\nreference documentation).\n\nTo copy the debug information to your clipboard, click on the **clipboard icon**\nat the top right of the JSON debug information panel.\n\nYou can also use [Chrome DevTools](/web/tools/chrome-devtools)\nto debug the iframe that hosts the web app on the simulator web page."]]