PHP code example of anwar / agent-orchestrator
1. Go to this page and download the library: Download anwar/agent-orchestrator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anwar / agent-orchestrator example snippets
use Anwar\AgentOrchestrator\Services\AiAgentService;
$agent = app(AiAgentService::class);
$response = $agent->processMessage($customerPhone, "I want to cook Chicken Biryani");
// $response will contain HTML-formatted content with images and cart links.
bash
php artisan vendor:publish --tag="agent-config"
bash
# Sync Recipes
php artisan agent:sync-chef-brain
# Sync Active Products
php artisan agent:sync-products