> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pilottai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Social media agent

# Social Media Agent Example

Simple example showing how to set up a social media management agent with PilottAI framework.

## Setup

```bash theme={null}
pip install pilott
```

## Example Usage

```python theme={null}
from pilottai import Serve
from pilottai.core import AgentConfig, LLMConfig

# Initialize
pilott = Serve(name="SocialMediaManager")

# Create agent
social_agent = await pilott.add_agent(
    title="social_media_manager",
    goal="Manage social media presence and engagement",
    tools=["content_scheduler", "engagement_analyzer"]
)

# Schedule content
job = {
    "type": "schedule_content",
    "platform": "twitter",
    "content": "Exciting announcement coming!",
    "schedule_time": "2024-03-15T10:00:00Z"
}

result = await pilott.execute([job])
```

## Tools

* content\_scheduler: Schedule social media content
* engagement\_analyzer: Analyze post engagement

## Features

* Content scheduling
* Engagement analysis
* Performance tracking
* Multi-platform support

## Code

Ready to use code [social\_media\_agent.py](../../pilott/agents/social_media_agent.py)
