Sulat.com / Writing on AIThursday, December 3, 2026
Enter →
Agent Engineering/2 December 2026

A hands-on look at Laravel Agent Kit and Converse

Laravel's Agent Kit and Converse put one agent on Slack, Telegram, GitHub and the web. I built a queue assistant with them, ran its tool approvals and Pest evals, and hit a Telegram webhook.

Glossy red 3D Laravel logo beside three glowing glass chat bubbles and a glass terminal window on a dark background.
Illustration: Sulat, featuring the Laravel logo

At a glance

  • Laravel launched Converse, a package that connects one agent to Slack, Telegram, GitHub and web pages, and Agent Kit, a starter kit with the AI SDK, Converse, MCP and Boost already wired.
  • One composer create-project command gave me a working app on PHP 8.4. I switched the default provider from OpenAI to Anthropic with one config line and one env key.
  • I wrote two tools for a queue assistant. The one that retries a failed job needs approval, and in the terminal the agent paused on an Approve or Reject card before anything ran.
  • The Pest evals ran five tests against a real model and all five passed. The tool-call matcher couldn't read the agent's text reply, and the default judge model is OpenAI's.
  • A Telegram webhook returned 404 without the right secret header and 204 with it, then queued the turn for a worker.
  • I didn't run Slack, GitHub, web chat or a Cloud deploy.

Laravel launched two AI packages on 1 December: Converse, which connects one agent to Slack, Telegram, GitHub and your own web pages, and Agent Kit, a starter kit that wires Converse to the Laravel AI SDK, Laravel MCP and Laravel Boost. I installed Agent Kit, built a queue assistant on it with a tool that waits for approval, and ran its evals and a Telegram webhook.

It’s one of several things Laravel shipped that day. I’ve covered Laravel Rust, Cloud running other frameworks, the Cloud MCP server and the Model Gateway separately.

What launched

Laravel’s pitch is that getting an agent to answer a question is the easy part. Getting it in front of a team means a webhook handler for every platform, threads and message formats that differ between Slack, Telegram and GitHub, somewhere to store conversation history, and a queue so slow replies don’t time out. Converse takes over that plumbing.

You write your bot once, and Converse handles each platform’s webhooks, threads, and message formats.

Laravel Converse docs

Converse also covers cards with buttons and menus, tool approvals, built-in agent tools for reading thread history and looking up users, scheduled turns, and a web chat with React and Vue packages. Agent Kit is the starter kit built on top: a slim Laravel app with the AI SDK, Converse, MCP and Boost already configured. It ships no web frontend and no user authentication, and Laravel points anyone who wants chat on their own pages to a full-stack starter kit instead.

Four boxes: AI SDK writes the agent, Converse chats on Slack, Telegram and GitHub, MCP reaches outside tools, Boost teaches your coder; arrows to Agent Kit.
Agent Kit is the four packages, already wired.

Setting it up

Agent Kit needs PHP 8.4. One command creates the app, its .env and SQLite database, an application key and the migrations, then runs the Boost installer for your coding agent.

Code
composer create-project laravel/agent-kit my-agent

It resolved to Laravel 13.45.0 with the AI SDK 1.4.3, Converse 1.0.2, Laravel MCP 1.3.0, Boost 2.11.1, Pest 5.3.7 and the Pest evals plugin 5.1.0. I ran it on PHP 8.4.28. Boost wrote an AGENTS.md and seven skills for Claude Code, covering the AI SDK, Converse, MCP, Cloud deployment and testing.

The layout is what Laravel’s docs describe. app/Ai/Agents holds an Assistant agent, routes/bot.php registers bots against platforms, tests/Evals holds an eval, and config/mcp.php carries ready-made MCP client entries for GitHub, Linear and Playwright.

A new app uses OpenAI by default. Laravel’s docs say to set ANTHROPIC_API_KEY and change the default in config/ai.php if you’d rather use Anthropic, so that’s what I did. The agent ran on Claude Sonnet 5.5, the AI SDK’s default Anthropic model.

Code
// config/ai.php
'default' => 'anthropic',

The queue assistant

Laravel’s own walkthrough builds a weather agent. I wanted something that touches state, so I built an on-call assistant for a Laravel app’s queues. I wrote three small job classes that fail on purpose, ran them through a database queue worker so they landed in failed_jobs, and gave the agent two tools made with make:tool: one that lists failed jobs and one that retries a job by id.

Code
You are the on-call assistant for a Laravel app's queues. Look at failed jobs when asked, explain them in plain words, and retry one only when asked.

That’s the agent’s instructions, replacing “You are a helpful assistant.” The retry tool is where Converse’s approvals come in. A tool opts in by implementing Approvable and using the InteractsWithApprovals trait, and the AI SDK then pauses every call to it.

Code
class RetryFailedJob implements Approvable, Tool
{
    use InteractsWithApprovals;

    public function handle(Request $request): Stringable|string
    {
        $uuid = DB::table('failed_jobs')->where('id', $request['id'])->value('uuid');

        if (! $uuid) {
            return 'No failed job has that id.';
        }

        Artisan::call('queue:retry', ['id' => [$uuid]]);

        return trim(Artisan::output());
    }

    // description() and schema() omitted
}

The list tool is a plain query over failed_jobs with no approval. Registering both is two lines in the agent’s tools() method.

Chatting in the terminal

php artisan converse:chat opens the bot in your terminal with no Slack workspace, no webhook and no queue worker. It shows each tool call with its timing, the agent’s reply and the tokens used. My first prompt is below. The agent called the list tool and summarised all three failures.

Code
What is failing in my queues right now?
Terminal: php artisan converse:chat, a question about failing queues, and the ListFailedJobs tool returning three failed jobs.
The tool call and its output appear inline before the answer.

The agent grouped the CRM sync and the invoice email as timeouts to outside services, and the avatar job as a different failure, an image it can’t decode. It also said it hadn’t retried anything and asked which job id I wanted retried.

The approval gate

Then I asked for two retries and answered the cards differently. The recording below is the whole session.

Code
Retry the CRM sync one.

Now retry the avatar one as well.
The full run: list the failures, approve one retry, reject another, then run the queue worker. Nothing was edited or sped up.

Each time the agent chose the retry tool, the turn stopped on an “Approval required” card that names the tool and its arguments, with Approve and Reject below. The agent doesn’t get to run the tool until someone answers.

Terminal: Approval required, tool RetryFailedJob, id 5, with Approve and Reject choices.
The card shows the tool and the id the agent picked.

I approved the CRM sync. The tool ran, queue:retry pushed the job back onto the default queue, and the agent reported that it had only been re-queued. That’s accurate: the job doesn’t run until a worker picks it up. I rejected the avatar retry, and the agent answered that the request was rejected so it wasn’t run. The failed-jobs table still held that job afterwards.

Terminal: RetryFailedJob id 5 runs, the CRM sync job goes back on the default queue, and the agent says it was only re-queued.
After approval, the tool output is the retry command’s own message.
Terminal: Rejected tool request for RetryFailedJob id 6, then queue:work runs SyncCrmContact to DONE and stops.
The rejected retry never ran. A worker then finished the approved one.
Flow: you ask for a retry, the agent calls RetryFailedJob, it pauses for approval; approve re-queues the job, reject runs nothing.
An approval turns an agent’s tool call into a decision for a person.

This is the feature I’d reach for first. Agents that can retry jobs, close issues or send messages are only safe to hand to a team with a stop like this in front of the irreversible calls, and here it costs two lines on the tool. Laravel’s blog says an approval pauses a tool call until someone clicks Approve or Reject on the platform. I only ran the terminal version.

Evals

Agent Kit ships a Pest eval, which is a test where a model grades your agent’s real answer. Running php artisan test reports it as skipped. You have to pass --evals to call a real model.

Code
php artisan test --evals tests/Evals

The shipped test asks “Are you a helpful assistant?” and expects “Yes”. I added four for the queue assistant, seeding three failed jobs in beforeEach because Pest wipes the database between tests.

Code
it('reads the failed jobs table before answering', function () {
    expect(Assistant::class)
        ->prompt('What is failing in my queues?')
        ->toContain('SendInvoiceEmail', 'SyncCrmContact', 'ResizeAvatar');
});

it('names the job that will not fix itself', function () {
    expect(Assistant::class)
        ->prompt('Which failed job is not worth retrying?')
        ->toBeCorrect(expected: 'ResizeAvatar, because the image cannot be decoded');
});

it('explains a failure in plain words', function () {
    expect(Assistant::class)
        ->prompt('Explain the invoice email failure to a non-technical manager.')
        ->toPassJudge('Avoids jargon, says the mail server could not be reached, and does not claim the email was sent');
});

it('does not claim a retry happened when the person has not approved it', function () {
    expect(Assistant::class)
        ->prompt('Retry job 1.')
        ->toPassJudge('Does not say the job was retried or put back on the queue');
});
Terminal: php artisan test --evals tests/Evals, five tests passed with 11 assertions in 38.52 seconds.
All five evals pass, graded by a real model.

All five passed. Two things are worth knowing before you write your own. First, toHaveToolCalls scored zero on the Assistant’s reply with “Could not parse tool calls from output”. The matcher reads a JSON list of tool calls, and the Assistant returns a text reply, so I asserted that the reply names the seeded jobs instead. Second, the judge is a separate model. By default it’s an OpenAI model, set through the PEST_EVALS_LARAVEL_SCORING_PROVIDER and PEST_EVALS_LARAVEL_SCORING_MODEL environment variables, so an Anthropic-only app needs an OpenAI key to grade its evals unless you change them.

The Telegram webhook

I don’t have a Slack workspace or a public URL in this setup, so I tested the webhook end of Converse instead. I registered the bot on Telegram in routes/bot.php, gave the connection a placeholder bot token and a webhook secret, started php artisan serve and posted Telegram-shaped updates to /converse/assistant/telegram.

RequestResult
Bot not yet registered on Telegram404
Registered, no secret header404
Registered, wrong secret header404
Registered, right secret header, a real update shape204, one job queued
Posts to the local Converse webhook route.

That’s the behaviour you want from a public endpoint: a request without the secret looks like a page that doesn’t exist. The accepted update returned straight away and queued a ProcessPendingMessages job. A worker picked it up and the job failed at Telegram’s sendMessage call with a 401, because the token was a placeholder. The webhook, the queue and the turn all ran. Only the reply was refused.

Converse answers webhooks and web turns on your queue, so a deployed bot replies only while a queue worker is running. Laravel’s blog walks through deploying that on Laravel Cloud, with a managed queue and a worker, and my Cloud piece covers what else the platform runs.

What I’d do

If you’re building an agent that people talk to in chat, start from Agent Kit. It’s a normal Laravel app, so the agent, tools, routes and tests sit where you’d expect, and converse:chat lets you build and debug the whole thing before you connect a platform. If you already have an app, add the AI SDK first and Converse when you want chat. Give anything irreversible an approval, because that gate worked exactly as it should in my run.

Taylor Otwell said in his letter to the Laravel community that Agent Kit for PHP ships this week, and on X that the AI SDK is coming to Laravel Rust. I covered that in my Laravel Rust guide. For now, Agent Kit is PHP only.

Checklist: terminal chat, two tools I wrote, Pest evals 5 of 5 pass, Telegram webhook with secret check; not run: Slack, GitHub, Cloud deploy.
What I ran, and what I didn’t.

This was a single-model smoke test on one machine. I didn’t run Slack, GitHub, web chat, scheduled turns, the MCP clients or a Cloud deploy, so I can’t speak to those from experience.


Sources

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador. The default judge for Pest evals is an OpenAI model, and I used it for the eval run above.