title: How to get external api data using inline editor in dialogflow
body: <p>I've got a Dialogflow agent for which I'm using the Inline Editor (powered by Cloud Functions for Firebase). When I try to get external api data by using <code>request-promise-native</code> I keep getting <code>Ignoring exception from a finished function</code> in my firebase console.</p>
  
  <pre><code>function video(agent) {
      agent.add(`You are now being handled by the productivity intent`);
      const url = "https://reqres.in/api/users?page=2";
      return request.get(url)
          .then(jsonBody =&gt; {
              var body = JSON.parse(jsonBody);
              agent.add(body.data[0].first_name)
              return Promise.resolve(agent);
          });
  }
  </code></pre>