Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<?php
declare(strict_types=1);
namespace App\Ai\Agents;
use App\Enums\User\Locale;
use Illuminate\Contracts\JsonSchema\JsonSchema;
use Laravel\Ai\Attributes\Temperature;
use Laravel\Ai\Contracts\Agent;
use Laravel\Ai\Contracts\HasStructuredOutput;
use Laravel\Ai\Promptable;
#[Temperature(0.8)]
class IdeaGenerator implements Agent, HasStructuredOutput
{
use Promptable;
public function __construct(
public Locale $locale,
public string $business,
public string $audience,
public ?string $notes = null,
) {}
public function instructions(): string
{
return view('prompts.ideas.generator', [
'business' => $this->business,
'audience' => $this->audience,
'notes' => $this->notes,
'language' => $this->locale->promptLanguage(),
])->render();
}
/**
* @return array<string, mixed>
*/
public function schema(JsonSchema $schema): array
{
return [
'title' => $schema->string()->required(),
'body' => $schema->string()->required(),
];
}
}