A connected integration gives an agent its tools, such as creating a file. The agent can call every tool you turn on, so tick only the ones it needs.
Before you start
You need an agent with no tools yet. See Create an agent. An app other than Veryfront must be connected first.
Choose the tools
- Name each tool your agent may call in its
tools, by its ID, here Veryfront'screate_file: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.", tools: { create_file: true },}); - Start the project with
npm run dev. - In Studio, open Chat.
- Pick Support assistant.
- Ask "Create the file notes/welcome.md that says Welcome to support.". You should now see it call
veryfront__create_fileand say it creatednotes/welcome.md.
Try it in a sandbox
Create a project
Set the tools
Start it
Ask it