Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Die Dialogflow-Konsole verfügt über einen integrierten Code-Editor, den Inline-Editor, mit dem Sie Auftragsausführungscode erstellen und in Cloud Functions bereitstellen können.
Cloud Functions ist zwar gebührenpflichtig, aber bis zu einer beträchtlichen Anzahl von monatlichen Aufrufen kostenlos. Sie müssen sich jedoch registrieren und ein gültiges Rechnungskonto angeben. Jederzeit kündbar.
Bei der erstmaligen Aktivierung des Inline-Editors ist der Auftragsausführungscode bereits mit Standard-Handlern für Standard-Intents versehen, die in allen Agents enthalten sind.
Außerdem enthält der Code kommentierte Anweisungen für Entwickler, um eigene Handler für Intents einzufügen.
Der Inline-Editor ist für einfache Auftragsausführungstests und Prototyping vorgesehen.
Sobald Sie bereit sind, eine Produktionsanwendung zu erstellen, sollten Sie einen Webhook-Dienst erstellen.
Dialogflow-Auftragsausführungsbibliothek
Der Inline-Editor verwendet standardmäßig die Dialogflow-Bibliothek zur Auftragsausführung.
Diese Bibliothek wird nicht mehr verwaltet, bleibt aber als einfache Lösung für die Auftragsausführungsbibliothek nützlich.
Diese Bibliothek sollte nur vom Inline-Editor-Code verwendet werden.
Die Dialogflow-Auftragsausführungsbibliothek unterstützt keine Versionsverwaltung.
Wenn Sie die Versionsverwaltung verwenden müssen, wählen Sie eine der folgenden Optionen aus:
Überschreiben Sie den Code des Standard-Inline-Editors mit Ihrem benutzerdefinierten Webhook-Code.
Sobald Sie bereit sind, Ihren Auftragscode in ein anderes System zu verschieben, verwenden Sie die Schaltfläche "get_app herunterladen" im Inline-Editor.
Der Inline-Editor unterstützt ausschließlich Node.js.
Wenn Sie Ihren Code mit der Cloud Functions-Konsole ändern, können Sie den Code nicht mehr über den Inline-Editor ändern.
Die Funktion wird weiterhin für Ihren Agent bereitgestellt, zukünftige Änderungen müssen jedoch in der Cloud Functions-Konsole vorgenommen werden.
Die Funktion des Inline-Editors muss dialogflowFirebaseFulfillment heißen.
Code, der im Inline-Editor geändert wurde, kann nicht ohne vorherige Bereitstellung gespeichert oder heruntergeladen werden.
Der Inline-Editor unterstützt nur zwei Dateien:
index.js: Enthält Ihren gesamten Auftragsausführungscode.
package.json: Wenn Sie diese Datei ändern, werden alle Abhängigkeiten installiert, die Sie bei der Bereitstellung angeben.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-18 (UTC)."],[[["\u003cp\u003eThe Dialogflow Console provides an inline code editor for creating and deploying fulfillment code to Cloud Functions, which offers a free tier up to a significant number of monthly invocations.\u003c/p\u003e\n"],["\u003cp\u003eThe inline editor is designed for testing and prototyping, and users should transition to a webhook service for production applications.\u003c/p\u003e\n"],["\u003cp\u003eThe inline editor uses the Dialogflow fulfillment library by default, which is simple but does not support versioning; alternatives are suggested for versioning needs.\u003c/p\u003e\n"],["\u003cp\u003eCode in the inline editor is pre-populated with default handlers for default intents and allows adding handlers for custom intents, but it must be deployed before it can be saved or downloaded.\u003c/p\u003e\n"],["\u003cp\u003eThe inline editor is limited to Node.js, only supports editing in two files, and is no longer usable if code is modified via the Cloud Functions console.\u003c/p\u003e\n"]]],[],null,["# Inline editor\n\nThe Dialogflow Console has a built-in code editor, called the\n\n*inline editor*\n\nthat you can use to create fulfillment code and deploy the code to\n[Cloud Functions](/functions/docs).\nCloud Functions has associated charges,\nbut the service is available for no charge up to a\n[significant number of monthly invocations](/functions/pricing). Note that you still\nmust register and provide a valid billing account. Cancel anytime.\n\n\nWhen you initially enable the inline editor,\nNode.js fulfillment code is pre-populated with default handlers for\n[default intents](/dialogflow/docs/intents-default)\nthat are included for all agents.\nThe code also has commented instructions\nfor adding handlers for developer-defined intents.\n\n\nThe inline editor is intended for simple fulfillment testing and prototyping.\nOnce you are ready to build a production application,\nyou should create a\n[webhook service](/dialogflow/docs/fulfillment-webhook).\n\nDialogflow fulfillment library\n------------------------------\n\nThe inline editor uses the\n[Dialogflow fulfillment library](https://github.com/dialogflow/dialogflow-fulfillment-nodejs)\nby default.\nThis library is no longer maintained,\nbut it remains useful as a simple fulfillment library solution.\nThis library should only be used by inline editor code.\n\nThe Dialogflow fulfillment library does not support\n[versioning](/dialogflow/es/docs/agents-versions).\nIf you need to use versioning,\nchoose one of the following options:\n\n- Overwrite the default inline editor code with your custom webhook code.\n- [Deploy custom webhook code to Cloud Functions directly](/dialogflow/es/docs/fulfillment-webhook#gcf).\n- Fork and modify the Dialogflow fulfillment library to support versioning.\n\nUsing the inline editor\n-----------------------\n\nThe [fulfillment quickstart](/dialogflow/docs/quick/fulfillment)\nhas step-by-step instructions for using the inline editor.\n\nDownload your code\n------------------\n\nOnce you're ready to move your fulfillment code to another system,\nuse the download\n*get_app*\nbutton on the inline editor.\n\nNetwork calls\n-------------\n\nNetwork calls originating from Cloud Functions code\nto destinations outside of Google's network are\n[charged by the Cloud Functions service](/functions/pricing#networking).\n\nLimitations\n-----------\n\nThe following limitations apply:\n\n- The inline editor only supports Node.js.\n- If you modify your code with the Cloud Functions console, you can no longer use the inline editor to modify your code. Your function will continue to provide fulfillment for your agent, but future edits must be made in the Cloud Functions console.\n- The inline editor function must be named `dialogflowFirebaseFulfillment`.\n- You cannot save or download code modified in the inline editor without deploying it first.\n- The inline editor only supports two files:\n - **`index.js`**: Contains all of your fulfillment code.\n - **`package.json`**: Modifying this file will install any dependencies you specify upon deployment.\n- See the [Dialogflow fulfillment library](#library) section for limitations of this library that is used by the inline editor by default."]]