Form Fill

Trigger a proactive campaign when a form is filled out

Available on:  Pro

Overview

Proactively initiate a conversation whenever someone is filling out a form on your website.

You can use this to send out helpful reminders or guide behaviour in places you know people typically experience confusion.

For example, when someone starts typing their email address in a field, the bot could proactively pop up to say something like "make sure to use the email address associated with your account".

See it in action

Start typing something in this form to trigger Ada:

How to set it up

Step 1

Follow Ada’s technical Embed documentation to learn how to add Ada to your website.

Attached is the code snippet you need to paste into the <head> tag.

⚠️ Be sure to replace <YOUR-BOT-HANDLE> with your own bot handle. Your bot handle is your bot’s unique domain name: https://yourbothandle.ada.support/.

📣Click here to learn how to load a bot on a non-US cluster.

<script
  id="__ada"
  data-handle="<YOUR-BOT-HANDLE>"
  src="https://static.ada.support/embed2.js"
></script>

Step 2

Follow the instructions on the Advanced Proactive Campaigns page to create a web campaign.

Step 3

Use triggerCampaign to launch a campaign created via the Ada dashboard in step 2. In this example, a campaign will be launched after the user has typed in at least 3 characters into an input field:

<input type="text" id="formFillCampaignTrigger" placeholder="Enter some text" />
// attach an event listener to the input field when the page content is loaded
window.addEventListener("DOMContentLoaded", () => {
  // find the campaign trigger
  const campaignTrigger = document.getElementById("formFillCampaignTrigger");
  const hasCampaignBeenTriggered = false;

  // add an event listener for each time a key is pressed and released
  campaignTrigger.addEventListener("keyup", (e) => {
    const typedCharacterLength = e.target.value.trim().length;
    // show the campaign if there are three or more characters and the campaign has not yet been shown
    if (typedCharacterLength >= 3 && !hasCampaignBeenTriggered) {
      window.adaEmbed.triggerCampaign("Form_fill");
      hasCampaignBeenTriggered = true;
    }
  });
});

See what Ada can do for you

Get your hands on our award winning platform and start offering VIP experiences for everyone, at scale.

Get a Demo