{"section":"tutorials","requestedLocale":"en","requestedSlug":"adding-a-trigger","locale":"en","slug":"adding-a-trigger","path":"docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger.md","branch":"main","content":"At this point, your chatbot is connected to a channel, but to automatically start a flow when the user interacts with the chatbot, you need to set up a Trigger. To create it, go to the Triggers Menu within the \"\"Studio\"\" module and click on \"\"Create Trigger.\"\"\n\n![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger_1.png)\n\nIn this section, we will create a standard trigger that can be configured in both the studio module and the flow.\n\n- Click on \"\"Create Trigger.\"\" A new window will open\n\n- Click the button \"\"Create a message keyword that launches a flow.\"\"\n  ![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger_2.png)\n\n- In the keyword space, you will define the word that will act as a trigger.Avoid using common words like: help, hello, good afternoon. Instead, use: test123, help123. This ensures that if the user uses any common word in a message, the flow with this trigger won't be activated.\n\n- In the trigger, you can choose to activate when:- The message starts with the keyword – If the phrase typed by the user starts with the keyword, the selected flow will be triggered.\n\n- The message contains only the keyword – The selected flow will execute an action if the user types only the single registered keyword.\n\n- In \"\"Flow,\"\" you define the flow to be started.\n\n- In \"\"Only Groups,\"\" you can choose to include or exclude the rules of this trigger for a specific group of contacts. Leave the field blank if you want to apply this rule to everyone.\n\n- Click on \"\"Create Trigger\"\" box.\n  ![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger_3.png)\n\nIn \"\"Groups to Exclude\"\": you can prevent people from certain groups from entering this flow.\nIf your Agent Builder is active, the triggers **WILL NOT** work, as the flows are activated by the intelligent agent and not by triggers.\n\n## Creating triggers in a flow\n\n- Click on \"\"Flows\"\" choose your flow, and open it.\n  ![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger_4.png)\n\n- Within the flow, click on the three-line menu and select \"\"Edit.\"\" A new window will open.\n  ![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger_5.png)\n\n- In \"\"Global Keywords,\"\" type the trigger word and click \"\"Save Changes.\"\"\n  ![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/weni-by-vtex/studio/adding-a-trigger_6.png)"}