Examples: Hello Agent
A minimal AI agent workflow that greets users.
ts
import { app } from "../runtime";
import { z } from "zod";
export const helloAgent = app.workflow("hello-agent")
.reason("generate-greeting", {
prompt: ({ input }) => `Say hello to ${input.name}`,
schema: z.object({ greeting: z.string() }),
});