title: Dialogflow - Calling an intent on a button click
body: <p>I have two buttons ('Category A' and 'Category B') created through custom payload in the 'Dialogflow Messenger' Integration. Once I click any category I want another intent to be triggered which would show the user few other buttons (sub-categories). I tried putting the welcome event name in the event section of the the code but that did not work for me (there were no changes at all). Could someone help me with this please?</p>
  <p>I also do not know how to create new events. (I could not understand much from the 'events' documentation.) The style section does not work too. I want to change the layout of the buttons too. I do not have the knowledge of web-hook and fulfillment too.</p>
  <pre>  &quot;richContent&quot;: [
      [
        {
          &quot;icon&quot;: {
            &quot;color&quot;: &quot;#FF9800&quot;,
            &quot;type&quot;: &quot;chevron_right&quot;
          },
          &quot;event&quot;: {
            &quot;languageCode&quot;: &quot;&quot;,
            &quot;name&quot;: &quot;WELCOME&quot;,
            &quot;parameters&quot;: {}
          },
          &quot;link&quot;: &quot;https://google.com&quot;,
          &quot;text&quot;: &quot;Career&quot;,
          &quot;type&quot;: &quot;button&quot;,
          &quot;style&quot;: {
            &quot;background-color&quot;: &quot;blue&quot;
          }
        },
        {
          &quot;type&quot;: &quot;divider&quot;
        },
        {
          &quot;icon&quot;: {
            &quot;type&quot;: &quot;chevron_right&quot;,
            &quot;color&quot;: &quot;#FF9800&quot;
          },
          &quot;link&quot;: &quot;https://google.com&quot;,
          &quot;text&quot;: &quot;Sales Inquiry&quot;,
          &quot;event&quot;: {
            &quot;languageCode&quot;: &quot;&quot;,
            &quot;name&quot;: &quot;&quot;,
            &quot;parameters&quot;: {}
          },
          &quot;type&quot;: &quot;button&quot;
        }
      ]
    ]
  } ```
  </pre>