Website chatsdk APIs

We have following apis available in chat sdk

open - With open call widget will be explicitly opened. This is useful when you want to connect the widget opening with a button click.

close - With close call widget will be explicitly closed.

toggle - With toggle call widget will move from open to closed state. If it is already closed then it will be in opened state.

closeTicket() - It will close the current conversations. As a result a new conversation will get started with AI, if user sends the message. This is helpful when you want to close the conversation after human handoff. To call this closeTicket() recommended way is to listen for ticket:agent_handoff or ticket:agent_handoff_initiated event. Then start a js timer for few seconds and call closeTicket()

Last updated