Conversation Sidebar

Use Cases

  • Control when conversation sidebar pops open
  • Hide a bot campaign from certain pages

First, Initialize the Drift Widget

<script>
drift.on('ready',function(api, payload) {
 // your code goes here
})
</script>				
<script>
analytics.ready(function(){
    //interact with the api here
})
</script>

Conversation Sidebar Functions

api.sidebar.open() opens sidebar

api.sidebar.close() closes sidebar

api.sidebar.toggle() toggles sidebar

api.goToNewConversation() opens sidebar to a new conversation

Note: Opening the sidebar opens it to a new welcome/away message. The sidebar will not open to a sent leadbot message if it has been sent to the site visitor but not opened by them.

What It Looks Like

Your Conversation Sidebar

Your Conversation Sidebar

Not using Drift yet? Get your free account here!

Conversation Sidebar