Skip to content

General tool: generate charts as image assets (for posts/media) #128

@chubes4

Description

@chubes4

Why

We frequently want to generate simple charts (bar/line/pie/comparison) as images for use in WordPress posts, social, or as sellable assets. Today this lives in external automation (Sweatpants), which limits composability for in-plugin agents.

Proposal

Add a general tool (AI Tool / ability) that can generate chart images from structured data and return either:

  • a local file path (for subsequent steps), and/or
  • an uploaded attachment_id via existing WP media helpers.

Suggested interface (rough)

Tool name idea: generate_chart
Inputs: chart_type, title, series[], labels[], width, height, theme, format (png/webp), optional alt_text, optional post_id (attach).
Outputs: path, optional attachment_id, mime_type, width, height.

Acceptance criteria

  • Deterministic chart rendering (no AI image generation)
  • Produces optimized PNG/WebP
  • Works in background jobs (no UI requirement)
  • Clear errors + remediation hints

Notes

Recipes plugin can wrap this for higher-level “content briefing” style workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions