Skip to content

Enable Live Chat on a Drupal Website

Once you have generated the Cloud Voice Live Chat code snippet, you can embed it in a Drupal site. The snippet renders a chat widget in the lower-right corner of your pages, giving visitors a direct line to your agents.

The steps below apply to Drupal 9.

  1. Sign in to the admin panel of your Drupal site.

  2. In the top navigation bar, choose Structure > Block layout.

    Drupal admin menu with Structure expanded and Block layout highlighted

  3. Scroll to the bottom of the page and select Place block next to Footer Top.

    Block layout page listing regions with the Place block button beside Footer Top

  4. Create a custom block:

    Cloud Voice, custom block editor with the Body field set to Source view and the Live Chat snippet pasted in

    1. Click Add custom block.

    2. In the Block description field, type a brief label for the block (for example, Live Chat widget). This name is for your reference only and is not shown to visitors.

    3. In the Body field, click Source, then paste the code snippet.

    4. From the Text format drop-down list, select Full HTML.

    5. Click Save.

  5. Scroll to the bottom of the page and select Footer Top from the Region drop-down list.

    Block configuration page with Footer Top selected in the Region drop-down

  6. Click Save block.

Open your Drupal site and confirm the Live Chat widget now appears in the lower-right corner. Visitors can click it to start a real-time conversation with your agents.

Cloud Voice, live website showing the chat widget docked in the bottom-right corner