Best practice to write stories that include externally triggered actions

We started trigger actions (let’s call it action_externally_triggered) using the execute action endpoint /conversations/<conversation_id>/execute.

How should we write our stories? The problem is that we cannot start a story with an action. Also, we do not want the action_externally_triggered to be predicted by rasa core, it must only be triggered externally.

Thanks for your help! Nicolas

you should put action_externally_triggered action as the first action in stories:

## story
    - action_externally_triggered
* greet

Since it is the first action it will be marked as unpredictable

Thanks a lot for your very quick answer Vladimir. I’ll try it out.