Apply for free DeskClone creditsApply now →

How to add AI chat to a Hostinger website

The Hostinger Website Builder takes custom code and places it site-wide, so adding an AI support agent is one script tag and a publish. This assumes a paid Hostinger plan, since the Website Builder has no free tier.

The steps

  1. 1

    Create your agent and publish it

    Sign up at DeskClone, point it at your site's address, and let it read your public pages. Publish the agent when the answers look right. Publishing produces the key the script tag needs.

  2. 2

    Copy your script tag

    In DeskClone, open your agent and go to the Share tab. Copy the script tag. It carries your own key, so the example below will not work as-is.

  3. 3

    Open Custom code in the builder

    In the Hostinger Website Builder, open your site, then go to the site settings and find Integrations, then Custom code.

  4. 4

    Paste the script tag and save

    Paste it in and save. Hostinger places tags by type on its own: script tags go to the end of the body, so the widget loads after your content rather than blocking it. You can add more than one snippet here.

  5. 5

    Publish the site

    This is the step people miss. Changes in the builder are not live until you publish. Click Publish, then open your live address in a new tab and check the chat button appears. If it is still missing, hard refresh the page once, since your browser and Hostinger both cache the published site for a short while.

What the script tag looks like

Yours will carry your own key in place of the placeholder.

<script
  src="https://agents.deskclone.ai/embed/chat.js"
  data-key="your-key-here"
></script>

One page instead of the whole site

If you only want chat on a single page, skip Custom code and use the editor instead. Add an element, choose Embed code, and paste the same script tag into that block. It then loads on that page alone.

Worth knowing

  • The DeskClone free plan covers 10 conversations a month, which is enough to see whether it answers your customers well, not enough to run a busy site on.
  • Hostinger's builder includes its own AI chat feature, paid for out of the AI credits bundled with your plan. Worth comparing before you add a second one.

Is a third-party chat tool allowed here

Yes. Hostinger documents adding third-party tools through Custom code and names chat vendors among the examples in its own support material. Adding a script tag is a supported path rather than something you are working around.

What you get

  • An agent that answers from your own pages, and says so rather than guessing when it does not know.
  • A handoff to a human, by email or a ticket, when it cannot resolve something.
  • A flat monthly plan rather than a charge for every question answered.

Publishing on a different platform? The Ghost guide covers the same install there.

Ready to let DeskClone handle your support?

See DeskClone in action. Book a live demo or start your free trial. DeskClone can be up and running today.

No credit card required. Setup takes minutes, not weeks.
Questions? Reach out at hello@deskclone.ai