Accessing Wix Chat box using wix code

Is it possible to control wix chat box programmatically? An example would be chat box popping up/sliding up when a user click on the “contact us” text on the “contact us” page. It will be useful for the user to find the chat box then.

Tried:
I tried adding a contact us button for testing and added an onclick event to expand the chat box. But I am getting this error in log. "Error: tpaWidgetId is only supported with viewer type [wysiwyg.viewer.components.tpapps.TPAWidget] "

2 Likes

Hey there!
I’m Eyal, the product manager of Wix Chat.
Currently Wix Chat doesn’t expose an api for the use case you described. However, I would love to chat with you to better understand your use case. It will help us in defining an api to interact with Wix Chat.

You can email me directly at eyalbe@wix.com.

Hi Eyal, How did the chat go I’m interested in doing the same thing for the website im working on?

Hey Toby!
Exposing a Wix Chat API is in our plans. Can you please share what are you trying create?

Hi Eyal!
Not too complex, just a button that when clicked causes the chat to pop up on screen and can also hide the chat if clicked a second time.

On it!

You can look at this post of ours, where we explain how to install it correctly.
https://www.wix.com/code/home/forum/community-discussion/instala-tu-plugin-de-chat-facebook-en-sitio-wix-espanol

Any update on this? I can show/hide on a mouse in/out but would love it to expand the chat window

Hi Anand,

We just introduce the chat + corvid integration and YES its possible.
For full doc:
https://www.wix.com/corvid/reference/$w.Chatbox.html#hide

Enjoy, Erez