Send and receive

(Артем Мальшаков) #1

Hello! I need send from my msql and receive messages or photos with bot and send back in my my msql
How can I do it?

(Karen Barker) #2

Hi there, :wave:

We have an integration with mySQL which you can use within a flow to add, update, get or delete a row or to run a custom query. Alternatively you could use our Webhook service in order to connect directly with the API.

In order to send a message from mySQL you would first need an action in your flow to get the row with the data you want to send.

To receive messages from a user you will need a flow trigger of either a keyword trigger or a catchall trigger. Alternatively within a flow you could use the Ask A Question feature in order to capture a user response.

To receive an image from the user you will require a flow with a “New File” Trigger.

To store the response back in the database you would then need to either do an update row action if it’s for an existing row or create a new row with the gathered information.

I hope this helps. If you get stuck just give us a shout :thumbsup: