Creating an AI agent in All in One AI, step by step

All in One AI·· 1 view· 3 min read

An agent is an assistant you set up once and use whenever you like. You pick the model, write how it should answer, add your own texts and choose which tools it may use. From then on, your program only sends the questions. Agents are created in the Agents tab of All in One AI, in Meu Interweb.

If you are not sure yet what an agent can and cannot do, read what an AI agent is first.

What you need

AI credits in your account, which you buy in the Buy credits tab of All in One AI. To use the agent from your own program, you also need a key from the API Center with the ai:write permission. Each field of the key is explained in creating an API key.

The steps

1 Open All in One AI in Meu Interweb, choose the Agents tab and click Create agent.
2 Give it a name and choose the model from the text models. The description is optional and only you see it.
3 Write the instructions: what the agent does, the tone it uses and what it must not do. The limit is 20,000 characters.
4 If you want, adjust the temperature, from 0 to 2. Lower gives more predictable answers; higher, more creative ones. max_tokens caps the length of each answer.
5 Turn on the tools the agent needs and add its knowledge, the texts it reads before answering.
6 Click Try it and ask questions the way a customer would. It is a real chat: it spends credits and shows the cost of each answer.
7 Under Use through the API, copy the agent id. You will also find ready-made examples there.

A sample set of instructions

For a bakery, something like this is enough to start: "You are the assistant for Sol Bakery. Answer in English, kindly and in a few sentences. If you do not know, ask for the customer's contact details." Opening hours, prices and deliveries do not go here: they go in the knowledge. What is worth writing in the instructions is covered in what to write in your chatbot instructions.

Start small. Short instructions, only the knowledge you need and no tools. Check the answers in Try it and add the rest later. A simple agent is cheaper and easier to fix.

Pausing and deleting

In the same tab you can pause an agent. While it is paused, API requests to that agent are refused with 409 agent_paused until you turn it back on. Deleting also removes all its knowledge and cannot be undone: requests to that agent stop working.

Each account can have up to 50 agents. To call one from your program, follow using the agent through the API.

Want to see what an agent can do for you? Visit the AI agents page.

See AI agents

SEE ALSO

Your AI agent's knowledge: what to add and how to keep each answer cheap

AI agent tools: reading web pages and knowing today's date

Using your AI agent through the API: agent/ in the model field

What an AI agent is, and what it still cannot do reliably

AI agents in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.