title: Map/Directions Cards & Integrate Actions/Intents such as CALL, EMAIL - With Dialogflow, Actions on Google, NodeJS Client V2
body: <p>I have been trying to figure out how to construct Maps/Directions Cards using <strong>Dialogflow</strong> and the <strong>NodeJS Client</strong>.  </p>
  
  <p>After doing a little bit of research, I found this <a href="https://stackoverflow.com/questions/38302858/google-static-maps-with-directions">SO</a> that explains how to generate a static map URL (as an image) using <strong>Google Directions API</strong> and Polylines. But in my opinion, there should be a feature in Dialogflow that allows developers to build those types of cards, along with associated built-in <strong>Intents or Events</strong> such as <strong>CALL</strong>, <strong>EMAIL</strong>, <strong>DIRECTIONS</strong>, etc.</p>
  
  <p>Below is an example of what I am trying to build: </p>
  
  <p><a href="https://i.stack.imgur.com/7bLtr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7bLtr.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Bie0B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bie0B.png" alt="enter image description here"></a></p>
  
  <p>Below is a piece of code that I wrote, trying to reproduce the call to actions (Call, Email, Directions, etc). I am also aware of follow-up <a href="https://developers.google.com/actions/reference/rest/Shared.Types/ActionType" rel="nofollow noreferrer">actions types</a> but I am not sure how to make it work within my app (How to trigger call/email events?)  </p>
  
  <pre><code>function triggerAction(conv) {
  
          let actions = ['Call','Fax','Directions', 'Website'];
          conv.ask(new BasicCard({
              text: `Some description`, // Note the two spaces before '\n' required for
              // a line break to be rendered in the card.
              subtitle: 'This is a subtitle',
              title: 'Title: this is a title',
              buttons: new Button({
                  title: 'This is a button',
                  url: 'https://assistant.google.com/',
              }),
              image: new Image({
                  url: IMG_URL_AOG,
                  alt: 'Image alternate text',
              }),
          }));
  
          conv.ask(new Suggestions(actions));
    }
  </code></pre>
  
  <p>I also created those intents within the Dialogflow dashboard as follow-up intents.
  In short, I want a user to be able to tap one of these buttons and trigger an action, such as CALL, EMAIL, etc. Thanks for any help.</p>