Chatbot response problem


(Asim Zaman) #1

Using Custom input channel:

Custom web channel customweb How to handle response Response status


(Asim Zaman) #2

Please help…


(Genzer Hawker) #3

I advise you to have a look at the documentation of requests: JSON Response Content.


(Asim Zaman) #4

@Genzer
I pass input from UI to chatbot as: message = request.form[‘text’] data = {“sender”: “default”, “q”: message} response = requests.get(“http://localhost:5004/chat/”,json=data) response = response.json() But always getting response is [“text”]

Also in Postman as