Skip to content

Step by step

Install the chat on your website

Copy the chat code from the Widget tab and paste it into your website, or send the instructions to whoever runs it. The app detects by itself when it is installed.

In the app:
Agents › your agent › Widget › Installation
Open the app
Reviewed on
6 min read
In this article

You install the chat by pasting one line of code into your website. Each agent has its own line, in its Widget tab: you copy it, paste it once, and the chat appears on every page that carries it.

Before you start

  • The agent has to be active. An agent that is a Draft or is Paused does not show the chat even when the code is in place. Switch it on with the Activate button (or Resume, if it was paused) on the agent’s page.
  • You need to be able to edit your website, or have someone who can: the person who built it, your agency or your platform’s support. If it is someone else, the app emails them the code and the steps: see send the instructions to whoever runs your website.
  • The look does not have to be finished. Colours, the greeting and everything else can be changed later from the app without touching the website again. See customise the look of your website chat.

Copy your agent’s code

  1. Go to Agents and open your agent.

  2. Open the Widget tab and, inside it, Installation.

  3. In the Put the chat on your website section, under Your chat code, you will see a line like this one. Press Copy.

    <script src="https://backend.iagentify.net/widget.js" data-agent="your-agent-key" async></script>

    Always copy the one in the app, not the one in this article: yours carries your agent’s public key, which is what tells the chat who answers.

  4. Under Where to paste it, choose what your website is built with: WordPress, Shopify, Wix, Squarespace, Webflow or “HTML or another platform”. The app shows the steps for that platform, and Copy the code and the steps copies both together.

Paste it into your website

The code goes just before the </body> tag, on every page where you want the chat. If your site uses one shared template for all its pages, pasting it once in that template is enough.

If your site is built with one of these platforms, follow its guide:

On a hand-built site (HTML)

  1. Open the page’s file, for example index.html, or the template all your pages share.

  2. Find the </body> tag. It is almost at the end of the file.

  3. Paste the code on the line above it:

        <!-- the content of your page -->
        <script src="https://backend.iagentify.net/widget.js" data-agent="your-agent-key" async></script>
      </body>
    </html>
  4. Save the file and publish it the way you always do: by FTP, from your hosting panel or with your deployment system.

  5. Repeat the steps on any page that does not use that template.

On another platform or content manager

Look in its settings for an option called “custom code”, “code injection”, “scripts” or “footer” that adds code to the whole site before </body>, and paste the line there. If the platform only lets you add code to the header (<head>), that works too: the chat waits for the page to finish loading.

Send the instructions to whoever runs your website

If someone else maintains the website (your developer, your agency or a colleague), you do not need to copy anything for them: iAgentify sends them an email with the code, the steps for each platform and how to check that it works.

  1. Under Widget › Installation, find “Someone else runs your website?” and press Send the instructions to whoever runs my website.

  2. Enter the E-mail of whoever runs your website. One address only.

  3. If you like, write a Note for that person, which goes in the email above the instructions, and choose the Language of the e-mail: Spanish or English.

  4. Press Send instructions. “Instructions sent” appears.

The email is sent in your name and replies come to you. It contains no passwords or secret keys: the key in the code is public.

Bear in mind:

  • You need the Member, Admin or Owner role, and your own email address has to be verified. If it is not, you see “First, confirm your own e-mail”.
  • Each address receives at most 3 of these emails a day, and each account can send a limited number a day, usually 10. If you reach the limit, press Copy the instructions and send them yourself.

Check that it works

  1. Open your website in a private browser window, so that you do not see a saved copy.

  2. The chat button appears in a bottom corner of the page. Press it.

  3. Type a question. The reply arrives within seconds and the conversation shows up under Conversations, inside the app.

  4. Go back to Widget › Installation: the card at the top now says “The chat is installed on one website”, with the domain.

How the app knows the chat is installed

You do not have to tell anyone: the first time someone opens a page of your website that carries the code, the Installation tab detects it by itself.

What you seeWhat it means
“We have not seen the chat on any website yet”No page with the code has loaded yet
“Looking for the chat on your website”You pressed Check again. Open your website in another tab: the app looks every few seconds for a few minutes
“The chat is installed on one website”It has loaded at least once. Underneath are the domains it was seen on, when the first time was and when the last

Worth knowing:

  • The preview in the app and websites on your own computer do not count. It has to be a website published on the internet.
  • The domain is what each visitor’s browser reports. It is a hint, not proof that the website is yours. The list keeps the 10 most recently seen domains.
  • If you have not limited the domains yet, the card warns “Right now any website can use your chat” and offers Review domains: you tick the websites you recognise as yours and they are added to Allowed domains. iAgentify adds none by itself, and the list does not apply until you press Save changes. See limit the chat to your domains.
  • If a few minutes pass and it still has not seen it, check that the code is saved and published and that the agent is active.

After it is installed

  • Changing the look or the texts. Whatever you change in the Widget tab applies when you press Save changes, without pasting the code again. On your website it can take about a minute to show.
  • Switching agent. Each agent has its own code. To have a different agent look after your website, replace the line with the new agent’s.
  • Removing the chat. Delete the line from your website. If you only want it to stop answering for a while, pause the agent: bear in mind that it then stops answering on WhatsApp and Instagram too.

If the chat does not appear

Most often the agent is not active, your domain is not under Allowed domains, or you are looking at an old copy of the page. The full list, with how to check each cause, is in the chat does not appear on your website.