Inline editor

The Dialogflow Console has a built-in code editor, called the inline editor that you can use to create fulfillment code and deploy the code to Cloud Functions. Cloud Functions has associated charges, but the service is free up to a significant number of monthly invocations.

When you initially enable the inline editor, Node.js fulfillment code is pre-populated with default handlers for default intents that are included for all agents. The code also has commented instructions for adding handlers for developer-defined intents.

The inline editor is intended for simple fulfillment testing and prototyping. Once you are ready to build a production application, you should create a webhook service.

Dialogflow fulfillment library

The inline editor uses the Dialogflow fulfillment library by default. This library is no longer maintained, but it remains useful as a simple fulfillment library solution. This library should only be used by inline editor code.

The Dialogflow fulfillment library does not support versioning. If you need to use versioning, choose one of the following options:

Using the inline editor

The fulfillment quickstart has step-by-step instructions for using the inline editor.

Download your code

Once you're ready to move your fulfillment code to another system, use the download button on the inline editor.

Network calls

Network calls originating from Cloud Functions code to destinations outside of Google's network are charged by the Cloud Functions service.

Limitations

The following limitations apply:

  • The inline editor only supports Node.js.
  • 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.
  • The inline editor function must be named dialogflowFirebaseFulfillment.
  • You cannot save or download code modified in the inline editor without deploying it first.
  • The inline editor only supports two files:
    • index.js: Contains all of your fulfillment code.
    • package.json: Modifying this file will install any dependencies you specify upon deployment.
  • See the Dialogflow fulfillment library section for limitations of this library that is used by the inline editor by default.