# Triggering flows with injected intents

**URL:** <https://forum.rasa.com/t/triggering-flows-with-injected-intents/62412>\
**Category:** Rasa CALM\
**Created:** [June 26, 2024, 9:47am UTC](https://forum.rasa.com/t/triggering-flows-with-injected-intents/62412 "2024-06-26T09:47:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elliot94](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@Elliot94](https://forum.rasa.com/u/Elliot94)\
**Post date:** [June 26, 2024, 9:47am UTC](https://forum.rasa.com/t/triggering-flows-with-injected-intents/62412/1 "2024-06-26T09:47:40Z")

</div>

I have defined a flow with the nlu\_trigger and intent, and I have added also the NLUCommandAdapter. However, when I use the HTTP API to trigger the intent, the flow does not get activated, but I just receive the proper response for code 200. Am I doing it wrong or can we not use the trigger intent to start a flow?

Here is my flow definition:

```auto
  guest_introduction:
    description: This flow is called by something else. you can ignore this flow.
    always_include_in_prompt: false
    nlu_trigger:
      - intent: guest_introduction_intent
    steps:
      - action: utter_I_am_robot
        next:
          - if: slots.guest_name 
            then:
              - action: utter_guide_guest
              - set_slots:
                  - guest_name: null
                  - location_in_kb: False
                  - source_location: null
                next: END
          - else:
            - collect: guest_name
            - action: utter_guide_guest
            - set_slots:
                - guest_name: null
                - location_in_kb: False
                - source_location: null
              next: END

```

and this is how I am triggering the intent:

```auto
curl -X POST http://localhost:5005/conversations/default/trigger_intent -H "Content-Type: application/json" -d '{"name":"guest_introduction_intent"}'

```
