Hostinger Horizons is designed to help you build and customize your website quickly with the power of AI. One of the key features of Horizons is its ability to integrate with a variety of third-party services to enhance your website’s functionality, like Google AdSense, Supabase, Stripe and many more.
In this guide, we’ll walk you through the process of adding any integration to your website using Horizons’ AI assistant.
How do integrations work in Horizons?
Integrations with Horizons are facilitated by prompts. You’ll provide the AI assistant with clear instructions about what integration you want to set up, and the assistant will generate the necessary code, configuration, or steps to integrate the tool into your website.
Note: Each integration may require specific details, like API keys, credentials, or account IDs. Make sure you have this information ready before starting!
Steps to add integrations using prompts
To start, open the Horizons AI assistant and provide the AI assistant with a prompt that includes the integration you want to use and any necessary details.
Example Prompt:
“Please add Google AdSense to my site. My publisher ID is ca-pub-XXXXXX
. Also, help me set up ads for blog posts.”
Note: The same logic works for integrations that need to incorporate embed and custom codes. You just need to make sure to state in your prompt what code needs to be added and where.
After receiving your prompt, the AI assistant will generate the necessary code, instructions, or configuration steps.
Once the AI assistant has provided the code or steps, insert the code into the relevant sections of your website and/or follow the configuration steps if they involve connecting to external services or setting up accounts.
Best practices for using integrations in Horizons
Clear Prompts: The clearer and more specific your prompt is, the more accurate and efficient the AI assistant will be in helping you set up the integration.
Test in Stages: After integrating, test each feature individually (ads, payment buttons, or database interactions) before going live.
Keep Credentials Secure: Always make sure that sensitive credentials (like API keys) are securely stored. Don’t expose them in public repositories or frontend code.
Stay Updated: Keep an eye on any updates for your integrations, especially if you’re using APIs that may change over time.
Common integrations with Hostinger Horizons
Here are some popular integrations that you can set up with Hostinger Horizons, using the same process outlined above:
Google AdSense – For website monetization through ads.
Supabase – For adding a database backend to your website.
Stripe – For setting up payment gateways and handling transactions.
Mailchimp – For integrating email marketing services.
Zapier – For automating workflows and integrating with other apps.
You can try many others by providing the integration details to the AI assistant and following the instructions. The process is simple and can be done entirely through prompts.