Skip to main content
By default the widget appears as soon as the script loads. To show it only at the right moment, such as after a user signs in, hide it on load with data-visibility and reveal it later with the update command.

Hide the widget on load

Add data-visibility="false" to the script tag:
Nothing renders: no launcher bubble, no chat panel, no conversation. The script still loads, so the widget appears as soon as you reveal it, and commands such as identify still run while it’s hidden. Only the exact value "false" hides the widget. Any other value, or no attribute at all, shows it, so existing embed code keeps working unchanged. You can set the same flag in window.ArgideSettings before the script loads:

Show and hide

Pass visibility to the update command:
This is the only way to change visibility. There are no separate show or hide commands. Hiding the widget closes the chat panel and removes the bubble from the page. The conversation is kept, so it’s still there when you show the widget again. The first line of the embed code, window.argide = window.argide || [];, lets you call the widget before the script has finished loading. If your code may run first, queue the command instead:
The command runs as soon as the widget is ready.
visibility stays in the browser. It’s never sent to Argide and never appears on a conversation.

Show the widget only to signed-in users

Hide the widget on the script tag, then reveal it after login. Send the user’s attributes in the same update call so the agent knows who it’s talking to from the first message:
On logout, hide the widget and clear the session:
See User identification for the attributes you can pass.

Reference

Next steps

User identification

Tell the agent who the user is

Install the widget

All script tag attributes and commands