# Buttons

> How to use buttons to trigger flows

In this tutorial, you'll learn how to use buttons with inventor.bot.

> This tutorial assumes you know the basics of inventor.bot- we recommend doing the [Ping Command](https://inventor.bot/docs/tutorials/ping-command) tutorial if you haven't already.

Start by creating a flow to send the button. In this case, we'll use a **Slash Command** called `/button`, but you can send a button in any flow with any trigger.

![SCR 20260512 nawn](https://docs.inventorassets.com/e5bf8159-4a7a-4bdd-b231-1fe46bafc418.png)

Now add a **Respond to Interaction with Advanced Message** block. Inside of that, add an **Action Row** with a **Button** inside- give it a **Custom ID** and a **Label**. You'll need to use that same **Custom ID** later, so don't forget it!

> If you used a non-interaction trigger, like **Message Sent** or **Member Join**, you'd need to replace the **Respond to Interaction with Advanced Message** block with a **Send Advanced Message** one.

![SCR 20260512 nbds](https://docs.inventorassets.com/f791c399-a418-42e7-9328-a18a73db9da0.png)

Create a new flow with the **Button Click** trigger and input the **Custom ID** you used in the previous flow.

![SCR 20260512 nblu](https://docs.inventorassets.com/6632fb33-ff0a-4866-9116-2c1858bb1de5.png)

You can add whatever blocks you'd like- for example, if you were creating a ticket system this could create a new channel for the ticket. Just make sure you respond to the interaction!

In this case, we'll use an ephemeral **Respond to Interaction with Text**.

![SCR 20260512 nbqi](https://docs.inventorassets.com/dd618ce9-2078-4c16-a11c-74c2f0a1cf5e.png)

Make sure both flows are saved and published, then run `/button` and then click the button it sends- you should see the response you defined in the second flow!
