Generate Framework Analysis
generate_framework_analysisRuns a specific framework against a user's inputs and produces a full analysis: prose explanation + structured fields + a self-contained SVG visualisation. Powered by the Jeda.ai · Visual AI framework knowledge graph.
ALWAYS call recommend_framework FIRST to obtain a valid framework_id -- it returns the exact namespaced slug to pass here. Framework ids are namespaced by category (e.g. SWOT = "cms_swot-analysis", Porter's 5 Forces = "cms_porters-five-forces"); a bare slug like "swot-analysis" will 404.
REQUIRED post-processing on success: the response's first text block contains a curl -fsSL save-directive for the SVG. Save the file locally and surface it as a file chip — do NOT summarise the visual in prose.
Input: framework_id (namespaced slug from recommend_framework) + user_inputs object (per-framework field set), OR a free-text raw_prompt fallback.
Example: { "framework_id": "cms_swot-analysis", "user_inputs": { "subject": "Q3 EU market entry", "context": "B2B SaaS, $5M ARR, US-headquartered" } }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Theme preset for the SVG render. Default: pastel. | |
| raw_prompt | No | Optional free-text prompt that REPLACES the auto-derived prompt. | |
| user_inputs | No | Object whose keys match the framework user-input form fields. | |
| framework_id | Yes | Namespaced framework slug (e.g. "cms_swot-analysis"). Get one from `recommend_framework` -- bare slugs like "swot-analysis" are not valid ids. |