# How do I teach an agent from its chat in SyBox?

In SyBox, this is done in Settings > AI and automation > AI Agents. 1) Open the agent's page and its "Chat" tab, then click "New chat" or open one of your chats. 2) Under the chat, switch from "Test as customer" to "Teach". 3) Write how the agent should answer, for example "Keep your answers short, and greet the customer only in the first message", and click Send. 4) The agent answers, and if your words need a change to its instructions, a card "Proposed change to its instructions"…

## How to teach an agent from its chat

1. Open the agent's page and its "Chat" tab, then click "New chat" or open one of your chats.
2. Under the chat, switch from "Test as customer" to "Teach".
   ![SyBox — Teach an agent from its chat: An agent's "Chat" tab: "Teach" chosen under the chat, above the box where you write how it should answer](https://www.sybox.io/res/sybox/help/teach-an-agent-from-its-chat-2.webp?v=0112a6e1)
3. Write how the agent should answer, for example "Keep your answers short, and greet the customer only in the first message", and click Send.
4. The agent answers, and if your words need a change to its instructions, a card "Proposed change to its instructions" shows it: a short summary, the lines it removes ("Before") and the lines it adds ("After"). Nothing changes yet.
   ![SyBox — Teach an agent from its chat: The agent's answer with the card "Proposed change to its instructions": the new lines, and the "Apply" and "Discard" buttons](https://www.sybox.io/res/sybox/help/teach-an-agent-from-its-chat-4.webp?v=1bcdf487)
5. Click "Apply" to save the change to the agent's instructions, or "Discard" to leave them as they are.
   ![SyBox — Teach an agent from its chat: The card after "Apply": "Applied", with an "Undo" button](https://www.sybox.io/res/sybox/help/teach-an-agent-from-its-chat-5.webp?v=859f3e1c)
6. Changed your mind after applying? Click "Undo" on the same card, and the instructions go back to what they were.

Tip: switch back to "Test as customer" and ask what a customer would ask, to see the new answer.

Note: if the card says "Check before applying: it adds …, which you did not ask for.", read the added lines first. If the instructions were changed after the card was made, "Apply" refuses with "The instructions changed after this was proposed. Ask again, so the newer change is not lost." Your teaching messages are never part of a customer's conversation.

## Questions

**Q: Which AI providers can I use?**

The "Type" list under "New AI agent" shows them: Gemini, ChatGPT, Claude, DeepSeek and OpenRouter (one key for many models). You need your own API key from the provider.

**Q: Who pays for the AI usage?**

You do, directly to your provider, through your own key. SyBox shows the tokens used on each agent's card and in its Usage table, but does not show prices.

**Q: I created an agent but it doesn't reply to customers. Why?**

An agent only answers through an automation. Go to Settings > AI and automation > Automations and create an automation with the action "Reply with AI" that uses your agent. Make sure the automation's State is "On" and the "Automations are running" switch at the top is on. Also check that:
- the conversation has not had "Stop AI replies" chosen
- the conversation is not blocked, marked as spam or archived (a temporary archive does not stop it)
- nobody from your team has already replied in it (the agent stays quiet until the conversation is marked Done, until the "Answer again after" hours pass, or until someone clicks "Hand to AI" in the bar under the conversation's name).

**Q: Can the agent promise a customer a call back, a discount or a delivery date?**

Not on its own. An agent does not promise anything on your team's behalf unless your instructions for it say it may.

**Q: I get "[Provider] refused the key: …"**

The provider did not accept the key. Check that you copied the whole key, that it is active, and that billing or quota is set up on your provider account. Then try again.

**Q: I get "This [provider] key offers none of the models this agent can use."**

Your key has no access to the models SyBox supports. Check your provider account's plan and permissions, or use another key.

**Q: The card shows "Last error". What should I do?**

That is the provider's last refusal, for example an expired key or a used-up quota. Fix it on your provider account, or click Edit and paste a new key.

**Q: Can I have different agents for different numbers or channels?**

Yes. Create one agent per purpose. Then create one automation per agent, each with a "Channel" condition that picks the right numbers or pages.

**Q: Will uploading a new file add to what is already there?**

No. Uploading or pasting replaces the agent's whole knowledge base. Put all of that agent's material into one upload.

**Q: The agent replied to something it shouldn't have, or answered wrongly. How do I correct it?**

Add or fix the information in the knowledge base, or add a rule in "Your instructions". Then use the agent's "Chat" tab to check the new answer.

**Q: Can the agent assign conversations or add labels?**

Yes, through your instructions. Use the numbers listed under "Your instructions", for example "assign it to user 3" or "add label 1".

## See also

- [Chat with an agent](https://www.sybox.io/help/chat-with-an-agent.md)
- [Add a voice for your AI agents](https://www.sybox.io/help/add-a-voice-for-your-ai-agents.md)
- [Ask the AI about a customer's message](https://www.sybox.io/help/ask-the-ai-about-a-customer-s-message.md)
- [Ask your AI agent a question](https://www.sybox.io/help/ask-your-ai-agent-a-question.md)
- [Choose how much an agent thinks ("Thinking")](https://www.sybox.io/help/choose-how-much-an-agent-thinks-thinking.md)

Source: https://www.sybox.io/help/teach-an-agent-from-its-chat

This page in other languages (SyBox's buttons and menus have their own names in each language: answer a reader from the page in their language):
- العربية (ar): https://www.sybox.io/ar/help/teach-an-agent-from-its-chat.md
- Français (fr): https://www.sybox.io/fr/help/teach-an-agent-from-its-chat.md
- Español (es): https://www.sybox.io/es/help/teach-an-agent-from-its-chat.md
- Italiano (it): https://www.sybox.io/it/help/teach-an-agent-from-its-chat.md
- Deutsch (de): https://www.sybox.io/de/help/teach-an-agent-from-its-chat.md
- Português (pt): https://www.sybox.io/pt/help/teach-an-agent-from-its-chat.md
- Melayu (ms): https://www.sybox.io/ms/help/teach-an-agent-from-its-chat.md
- Indonesia (id): https://www.sybox.io/id/help/teach-an-agent-from-its-chat.md
- Русский (ru): https://www.sybox.io/ru/help/teach-an-agent-from-its-chat.md
- Türkçe (tr): https://www.sybox.io/tr/help/teach-an-agent-from-its-chat.md
