Execute a BOT when receiving a Gmail
![NO IMAGE](https://docs.c-bot.pro/wp-content/themes/lionblog/img/img_no.gif)
Home > Connect > Power Automate > Execute a BOT when receiving a Gmail
Creating a flow
Create a flow that executes a specific BOT when receiving new Gmail.
![](https://docs.c-bot.pro/wp-content/uploads/2023/01/powerautomate_use_case_image02.png)
Gmail(When a new email arrives)
Trigger when a new email arrives.
Cloud BOT(Execute a BOT)
Execute arbitrary bot.
Setting a Gmail
1. Click "Create" from the navigation menu on the left side of the screen and select "Automated Cloudflow".
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/po_07.png)
2. Although a modal window of "Build an automated cloud flow" will be displayed, press the "Skip" button."
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/po_ex1_02.png)
3. Search for "Gmail" and click the icon.
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/スクリーンショット-2023-05-29-9.11.54.png)
4. Select the trigger "When a new email arrives."
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/po_ex1_12.png)
5. Set the trigger. Specify "Label," etc.
*Create a connection if it doesn't exist.
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/スクリーンショット-2023-05-29-9.14.07.png)
Setting Cloudbot
1. Select "New Step".
![](https://docs.c-bot.pro/wp-content/uploads/2023/06/po_ex5_02.png)
2. Search for "Cloud BOT" and click the icon.
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/スクリーンショット-2023-05-29-9.18.59.png)
3. Select "Execute BOT" from Actions.
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/po_ex1_14.png)
4. Set the action. Click here for setting values.
*Create a connection if it doesn't exist. Click here for information on creating a connection.
![](https://docs.c-bot.pro/wp-content/uploads/2023/09/pa_en_use_case_image_2_01.jpg)
A flow has been created. Check the operation from "Test" in the upper menu (upper right of the screen). If you can confirm the execution result, the settings are completed.
![](https://docs.c-bot.pro/wp-content/uploads/2023/05/スクリーンショット-2023-05-29-9.22.23.png)