> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nettify.no/llms.txt
> Use this file to discover all available pages before exploring further.

# Add your own AI to your website

> Get an AI assistant that answers your customers around the clock — how it works, and how to get started

## What is your own AI on your website?

Your own AI is a chat on your website that answers visitors right away, also at night and on weekends. It can answer questions about your services, prices and opening hours, and help customers move on to book or get in touch.

This is different from Nettify AI. Nettify AI helps you build and change your website. Your own AI assistant talks to your customers.

***

## Why do you need an API service?

To answer, the chat has to send the question on to an AI model, for example from OpenAI or Anthropic. That takes a secret key. The key works like a password, and it also decides who pays for the usage.

The key can't live on the website itself. Anyone can read everything on your website. That's why you need a small API service: a program that runs on a server all the time and keeps your AI assistant running.

**1. The customer asks a question**

The question is typed into the chat on your website.

**2. The API service receives the question**

The service sends the question to the AI model, together with the secret key and your instructions: what your business does, and what the assistant should and shouldn't answer.

**3. The answer shows up in the chat**

After a few seconds, the answer comes back and is shown to the customer.

> [!NOTE]
>
> Your Nettify website shows the chat. The API service is what makes it actually able to answer. Without the service, the chat is just an empty window.

***

## Let Nettify set it up for you

Want to skip the technical part? We set everything up for you:

* We build the API service and keep it running.
* We connect the chat to your website, in the same style as the rest of the site.
* We teach the AI assistant about your business: services, prices, opening hours and how you want it to answer.

Get in touch, and we'll find out what suits you. Write to us at [hjelp.nettify.no](https://hjelp.nettify.no), or email [support@nettify.no](mailto:support@nettify.no).

***

## Set it up yourself

Do you have a developer, or like to do things yourself? This is what you need:

**1. An account with an AI provider**

For example OpenAI or Anthropic. Create an API key, and set a limit for how much you can spend per month.

**2. An API service that always runs**

A small program on a server, for example at Railway, Render or Vercel. It receives questions from your website, adds your key and instructions, and sends the answer back. The key is stored as a secret setting on the server.

**3. Lock the service to your domain**

Only let the service answer requests from your own domain. Also limit how many questions one visitor can send. That way nobody else can use the assistant on your bill.

**4. Ask Nettify AI to build the chat**

Once the API service has an address, ask Nettify AI to build the chat window that talks to it.

> [!TIP]
>
> **Copy this prompt and paste it into Nettify AI:**

```
Add a chat bubble in the bottom right corner of every page that talks to our AI assistant.
- When a visitor sends a message, send a POST request to [the address of your API service]
  with JSON: { "message": "<the message>", "history": [<earlier messages in the conversation>] }
- Show the answer from the "reply" field in the chat.
- Show "Typing …" while we wait for the answer.
- First message from the assistant: "Hi! How can I help you?"
- If something goes wrong: "Sorry, something went wrong. Try again, or contact us directly."
- Design: same colors and font as the rest of the website. The chat must not cover important content on mobile.
```

> [!WARNING]
>
> Never paste the API key into Nettify AI or into the website's code. Visitors can read everything on your website, and others could then use the key on your bill.

***

## What does it cost?

The AI provider charges for how much the chat is used. The price depends on how many people write, and which AI model you choose. The server that runs the API service also costs a little per month.

Always set a monthly limit with the AI provider. Then you'll never get a surprise bill.

> [!TIP]
>
> **Is a ready-made chat service enough?** Services like Tidio and Crisp give you a code you can paste in. See [Add HTML widget](https://docs.nettify.no/en/ai/html-widget.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.