PHP MySQL Dialogflow
问题 I'm setting up a chatbot (dialogflow) with a PHP webhook What I want to do is to take the user input to query a MySQL table and pass the result back to the dialogflow API So far I succeeded with passing a text string back to the API, but I don't understand how to query the database and pass the result back to the dialogflow API I'll appreciate your help with this I've used the API format from the dialogflow docs here This is what I have <?php $method = $_SERVER['REQUEST_METHOD']; if($method =