A tutorial on giving a Laravel-based AI support agent access to real application data via tools. Two tools are built: OrderLookup (fetches order status, total, and customer info by order ID) and CustomerHistory (retrieves last five orders by email). The episode covers building the Order model, migration, and relationships, registering tools on the agent, updating agent instructions, and adding a MaxSteps limit to prevent runaway API usage from chained tool calls.

2m read timeFrom laravel-news.com
Post cover image
1 Comment

Sort: