title: Dialogflow - Fulfillment Inline Editor(Firebase) is timeout
body: <p>I am testing with Dialogflow using Firebase project.</p>
  
  <p>The Firebase Project is already used as an android backend. (Firestore)</p>
  
  <p>Now, I am trying to attach chatbot.</p>
  
  <p><a href="https://github.com/dialogflow/fulfillment-firestore-nodejs" rel="nofollow noreferrer">This github code is what I want.</a></p>
  
  <ol>
  <li><p>I create a new Dialogflow Agent, it refers to the Firebase project.</p></li>
  <li><p>Enable Fullfillment Inline Editor, and I copy&amp;paste a code from upper github code.</p></li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>'use strict';
  
  const functions = require('firebase-functions');
  const admin = require('firebase-admin');
  const {WebhookClient} = require('dialogflow-fulfillment');
  
  process.env.DEBUG = 'dialogflow:*'; // enables lib debugging statements
  admin.initializeApp(functions.config().firebase);
  const db = admin.firestore();
  
  exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) =&gt; {
    const agent = new WebhookClient({ request, response });
  
    function writeToDb (agent) {
      const databaseEntry = agent.parameters.databaseEntry;
      const dialogflowAgentRef = db.collection('dialogflow').doc('agent');
      return db.runTransaction(t =&gt; {
        t.set(dialogflowAgentRef, {entry: databaseEntry});
        return Promise.resolve('Write complete');
      }).then(doc =&gt; {
        agent.add(`Wrote "${databaseEntry}" to the Firestore database.`);
      }).catch(err =&gt; {
        console.log(`Error writing to Firestore: ${err}`);
        agent.add(`Failed to write "${databaseEntry}" to the Firestore database.`);
      });
    }
  
    let intentMap = new Map();
    intentMap.set('WriteToFirestore', writeToDb);
    agent.handleRequest(intentMap);   // Here is index.js:51
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is very simple.</p>
  
  <p>It just writes a text into the Firestore.
  That's all.</p>
  
  <p>I deployed this fulfillment and linked to an Intent.</p>
  
  <p>In case of first conversation after deploy, I can find below log in Firebase Cloud Functions.</p>
  
  <pre><code>Error: No handler for requested intent
  at WebhookClient.handleRequest (/user_code/node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:317:29)
  at exports.dialogflowFirebaseFulfillment.functions.https.onRequest (/user_code/index.js:51:9)
  at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:57:9)
  </code></pre>
  
  <p>And after some times, when I retry again, I can find below logs in the Firebase Cloud Functions.</p>
  
  <pre><code>dialogflowFirebaseFulfillment - Function execution took 60002 ms, finished with status: 'timeout'
  </code></pre>
  
  <p>I don't know what I am missing...</p>