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

# Keep answers on topic

> Set what the chatbot says when it cannot answer, keep it to your topics, and limit long conversations.

Your chatbot is told to answer from your content. When your content does not have the answer, it replies with your **Fallback Message**. You can make this stricter with instructions, and you can limit how long a conversation can be.

Know these limits before you start:

* **The chatbot does not browse the internet.** It only reads your content, your instructions, and the conversation.
* **"Answer only from your content" is guidance, not a hard block.** The AI model can still use general knowledge it already has. Clear instructions reduce this. They cannot remove it fully.

## Before you start

* **Role:** Manager or higher. See [Team members](/docs/guides/account/team-members).
* **Plan:** any plan. The message limit per conversation needs the Growth plan or above. See [Plans and limits](/docs/reference/plans-and-limits).

## Set the fallback message

The fallback message is what the chatbot says when your content does not answer a question. The default is:

> I'm sorry, I don't have enough information to answer your question, but I'm happy to assist with any other questions you may have.

<Steps>
  <Step title="Open the Instructions page">
    Go to **Settings** > **Instructions**. You can also select **Chatbot Instructions** in your chatbot's sidebar.
  </Step>

  <Step title="Write your message">
    Under **Fallback Message**, type the message you want. For example, add how to contact your team.
  </Step>

  <Step title="Save">
    Select **Save Fallback Message**.
  </Step>
</Steps>

When the chatbot replies with the fallback message:

* The question is added to **Unanswered questions** on the **Analytics** page. This list needs the Growth plan or above.
* Follow-up suggestions are not shown under that reply.

The chatbot is told to use your fallback message as written. If it rewords the message, the question may not be added to **Unanswered questions**.

## Tell the chatbot to stay on topic

Add rules to your active instructions. See [Write instructions](/docs/guides/answers/write-instructions) for the steps.

These are examples. Change them to match your business.

```text Example: answer only from your content theme={null}
Answer only with information from the provided content.
If the content does not answer the question, reply with the fallback message. Do not guess.
Do not use general knowledge to fill gaps.
```

```text Example: redirect questions outside your topics theme={null}
You only help with questions about Example Company's products and orders.
If a visitor asks about anything else, say politely that you can only help with Example Company topics.
Then suggest one thing you can help with, such as our return policy.
```

```text Example: sensitive topics theme={null}
Do not give legal, medical, or financial advice.
If a visitor asks for this kind of advice, say that you cannot give it and suggest that they speak to a qualified professional.
```

Only one instruction set is active at a time. Put all your rules in the same set.

<Note>
  Follow-up suggestions can still show after the chatbot declines an off-topic question. To turn them off, see [Follow-up suggestions](/docs/guides/widget/follow-up-suggestions).
</Note>

## Limit messages per conversation

A message limit stops very long conversations. When a conversation reaches the limit, the visitor must start a new conversation.

<Steps>
  <Step title="Open General settings">
    Go to **Settings** > **General**.
  </Step>

  <Step title="Turn on the limit">
    Turn on **Limit Messages Per Conversation**.
  </Step>

  <Step title="Set the number">
    In **Max Messages Per Conversation**, enter a number from 1 to 1000.
  </Step>

  <Step title="Save">
    Select **Save Changes**.
  </Step>
</Steps>

For this limit, each answer from the chatbot counts as one message. A lead form message that contains an answer also counts. Failed replies do not count. This is not the same as your monthly message allowance, where the visitor's message and the chatbot's reply each count. See [Plans and limits](/docs/reference/plans-and-limits).

When the limit is reached, the visitor sees "You've reached the maximum number of messages for this conversation." and a **Start a new conversation** button. To change this text, see [Language and text](/docs/guides/widget/language-and-text).

On plans without this feature, the settings show a lock icon. You cannot change them.

The limit works in the chat widget on your website and on the hosted chat page. Do not rely on it for conversations in integrations, such as Slack, or for messages sent through the API.

## What happens with harmful messages

SiteGPT can block messages with harmful content. You do not need to set this up.

When a message is blocked, the visitor sees:

> I'm not able to respond to that. Please try rephrasing your question.

You cannot change this text. The blocked message is left out of the context for later answers in that conversation.

## Check that it works

Open the chat button in the corner of your dashboard and start a new conversation.

1. Ask a question your content does not cover. The chatbot replies with your fallback message.
2. Ask a question outside your topics. The chatbot redirects you as your instructions say.
3. If you set a message limit, keep asking questions. After the limit, you see the limit message and the **Start a new conversation** button.
