Hello,
I am wondering whether it would be possible to access the tracker from the output channel.
We are using several FB pages on the same app (bot). Thus we cannot store the token/secret in the class itself, but need to check it on runtime against our db.
The problem is that we cannot use the conversations/execute
API to trigger events from outside the bot (we want to use this to send custom notifications to users). However, when we do this we cannot send a message to Messenger since the FB class doesn’t store the secret/token (as mentioned).
However, we could get these based on the sender_id
from the tracker.
This is in the file /lib/python3.6/site-packages/rasa/server.py
, at:
return reduce(
lambda output_channel_created_so_far, input_channel: (
input_channel.get_output_channel() or output_channel_created_so_far
),
matching_channels,
CollectingOutputChannel(),
)
Is there anyway to achieve this? (I think the tracker
obj. contains info. on the current sender_id
)
return reduce(
lambda output_channel_created_so_far, input_channel: (
input_channel.get_output_channel(tracker) or output_channel_created_so_far
),
matching_channels,
CollectingOutputChannel(),
)
We don’t want to fork Rasa for this