0

I am creating a bot on facebook messenger, following the tutorial here

Is there a way for the bot to retrieve results from my own api endpoint?

Essentially, I have set up an api endpoint from which results in json is to be returned. I would like the results to populate the template in facebook messenger, like how the current CNN messenger bot shows news based on queries

How do I do this?

RPV
  • 397
  • 1
  • 5
  • 16

2 Answers2

1

Your bot can do anything you want from him. But you have to setup him first on your server...

What he will return, or his behaviour is up to you.

You can use PHP with my API: https://github.com/Fritak/messenger-platform

Just follow an example and then return generic template.

fritak
  • 191
  • 3
0

You can use API.ai to create chatbots on Facebook messenger pretty easily. Full disclosure = yes I work there. We've had great feedback on our FB Messenger integration as well as Slack, Kik, Telegram, Twilio SMS, etc. https://docs.api.ai/docs/facebook-integration