import requests
import json

# Selena agent session
session_key = "agent:selena:main"

# Request to Selena via gateway
gateway_url = "http://localhost:18789/api/agent/send"
gateway_token = "03152272e26e5001bf7539c722dcfa0799f7b602c91f5c38"

message = """Generate a blog header image for a post about "Weed Deals Florida".

Requirements:
- Professional editorial style
- Cannabis/deals theme (green tones, savings imagery)
- 1200x630 pixels (Open Graph size)
- No text in image
- Save to: carl:/var/www/cannadealsfl/public/images/blog/headers/weed-deals-florida-complete-guide.png

Post the image path when done."""

payload = {
    "sessionKey": session_key,
    "message": message
}

response = requests.post(
    gateway_url,
    headers={"Authorization": f"Bearer {gateway_token}"},
    json=payload,
    timeout=10
)

print(json.dumps(response.json(), indent=2))
