Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change_conversation_state and update_conversation_metas do not return json #15

Open
vapdev opened this issue Jul 26, 2022 · 6 comments
Open

Comments

@vapdev
Copy link

vapdev commented Jul 26, 2022

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

@baptistejamin
Copy link
Member

Hello python-crisp-api#15!

Jairo here, pleased to help you :)

What are you trying to achieve with these specifically?

@vapdev
Copy link
Author

vapdev commented Jul 26, 2022

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

@baptistejamin
Copy link
Member

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.

@vapdev
Copy link
Author

vapdev commented Jul 26, 2022

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
Copy link
Author

vapdev commented Jul 26, 2022

The response is empty, although the conversation state is changed

@baptistejamin
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants