python-crisp-api icon indicating copy to clipboard operation
python-crisp-api copied to clipboard

change_conversation_state and update_conversation_metas do not return json

Open vapdev opened this issue 3 years ago • 6 comments

I wish i could see the response of these methods, but they dont return anything

vapdev avatar Jul 26 '22 18:07 vapdev

Hello python-crisp-api#15!

Jairo here, pleased to help you :)

What are you trying to achieve with these specifically?

baptistejamin avatar Jul 26 '22 18:07 baptistejamin

I'm using them in a chatbot! And I'm making tests for the chatbot API So I need to see these kind of response { "error": false, "reason": "updated", "data": {} } from crisp api

vapdev avatar Jul 26 '22 18:07 vapdev

Got it, so you are trying to change conversation status. But, how are you using that with a bot? Can you please share more details and screenshots.

baptistejamin avatar Jul 26 '22 18:07 baptistejamin

Sure,

When the user tells the chatbot to handoff to human, this action is called

image

This action calls "crisp.resolve_conversation(user_id)"

And it calls the crisp_api method

image

vapdev avatar Jul 26 '22 18:07 vapdev

The response is empty, although the conversation state is changed

vapdev avatar Jul 26 '22 18:07 vapdev

Got it. I will ask our engineers to review this and we will get back to you soon. Thanks for your patience.

baptistejamin avatar Jul 26 '22 18:07 baptistejamin