The chain of command is as follows. This is a 30k foot overview but should get you started, if you run into issues or need clarification, feel free to ask.
BI = BluefIris. DS = Deep Stack.
BI Senses movement based on your rules > BI is Triggered > DS is informed of the trigger and begins...