Hi, I want to send some extra information about the components that needs to be used while replying to a message. Building a bot for facebook messenger, how do I pass additional data that can be used to build the components.
Initially tried writing a custom action script in nodejs and sent an extra key along with the response
var response = {
responses: [{
text: 'Please wait. Our team will get in touch with you shortly.'
}],
components: [{
button: null
}]
};
But it doesn’t show up in the agent.handle_text() the reply only shows
[{'recipient_id': '1440559129369220', 'text': 'Please wait. Our team will get in touch with you shortly.'}]
This doesn’t have the component key I sent from the action server.
Later I used events for the same
var response = {
events: [{
event: "slot",
name: "buttons",
value: "yes/no"
}],
responses: [{
text: 'Please wait. Our team will get in touch with you shortly.'
}]
};
But that doesn’t help either, what I want to do is send some extra information to the main thread which is written in python.
Please help!