https://discord.gg/botpress logo
update conversation in CHAT API?
# 🤝help
e
Im using CHAT API as I figured that what I needed, but I find it weird that it does not have some of the basic apis like update conversation. What I want to achieve is updating conversation variables via backend; so not having update conversation in CHAT API is weird to me. What am I missing? So should I keep using CHAT API to run the create user -> conversation -> message flow, and use the RUNTIME API when need extra endpoints like update or should i focus on runtimes only since its more complete?
n
To update variables via backend u can use something like this : { "conversation": { "myVariable": "newValue" } }
l
The question is, why do you want to update variables using a backend? You cannot send values midway just to update variables, unless it is part of a flow. Chat API is meant for establishing a chat conversation outside of webchat. In your previous thread I explained this. If you can explain the use case, I can assist