Preparing your intents

Now, we are ready to build the webhook which will actually fetch and display the data inside our PlanetsBot.

There are just a couple more things to do:

  • Set an action for each intent which calls the webhook
  • Make sure you turn on the “Call webhook” toggle on each intent

Here is what the UserAsksForAttributeOfPlanet intent looks like:

Note that the action is called getPlanetAttribute and we have toggled the “Enable webhook call for this intent” switch.

Similarly, this is what the UserChangesAttribute intent looks like:

The third intent is homework for the student. 🙂

ℹī¸ All Courses | ? How to unlock all lessons (free) | ? Live chat