Create an agent with a model, the instructions it follows on every reply and the tools it can use.
Before you start
You need a project. See Create a project.
Create an agent
- Add the agent. Its
systemis the instructions it follows on every reply; leave outmodelto use the project's default:agents/support.tsimport { agent } from "veryfront/agent"; export default agent({ id: "support", name: "Support assistant", system: "Answer customer questions about orders and refunds. Keep replies to two sentences.",}); - Start the project with
npm run dev. It syncs the project to Veryfront. - Open Chat in Studio.
- Pick Support assistant.
- Ask "Can I get a refund on an order I placed yesterday?". You should now see Support assistant answer in two sentences or fewer.
Try it in a sandbox
Create a project
Add the agent
Start it
Ask it