Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations via Server-Sent Events.
Request body
Besides config, userPrompt, and optional metadata, you may send maxSuggestionCount (integer 1–4). When set, it is communicated to the model as the target maximum number of suggestions. The stream is not validated or truncated to that count if the model returns more.
Response
The response is a Server-Sent Events stream. See SSE Format for parsing details.
The graph configuration object used to render charts. See Graph Config Schema for the complete reference.
Show child attributes
userPrompt
string
required
Natural language description of what to visualize
Maximum string length: 10000
metadata
object
Optional tracking information for requests
Show child attributes
maxSuggestionCount
integer
Optional upper bound (1–4) communicated to the model for how many suggestions to aim for. The response is not truncated; the model may still return more items.
Required range: 1 <= x <= 4
Response
SSE stream with progress and completion events
Progress event
Suggestions complete event
Error event
SSE event name is "progress"
message
string
⌘I
{"docsConfig":{"theme":"willow","$schema":"https://mintlify.com/docs.json","name":"Graphy SDK","colors":{"primary":"#D4594C","light":"#FC6A5B","dark":"#D4594C"},"logo":{"light":"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/assets/logo-black.png?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=6b44d903b3cc61bf496cef3fef3818d8","dark":"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/assets/logo-white.png?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=afb68d08ae1122810d0d04339311d643"},"favicon":"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/favicon.ico?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=aedfda5ee665576f2aa6da5327a0e3c2","navbar":{"links":[{"href":"/licence/evaluation","label":"Licence"},{"href":"https://discord.gg/yGmYCjkSr","label":"Support"}]},"fonts":{"heading":{"family":"Space Grotesk","weight":700},"body":{"family":"Space Grotesk","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"graphy-26e77454","hasAudioNarration":false,"actualSubdomain":"graphy-26e77454","customDomains":["docs.graphy.dev"],"gitSource":{"type":"github","owner":"graphysdk","repo":"monorepo","deployBranch":"main","contentDirectory":"apps/sdk-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af726f38995c8cbf2f5bc4b","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"SDK","count":79},{"language":"default","tag":"SDK (Classic)","count":46},{"language":"default","tag":"Agents API","count":27},{"language":"default","tag":"Configuration","count":18},{"language":"default","tag":"Chart types","count":18},{"language":"default","tag":"Themes","count":18},{"language":"default","tag":"Graph types","count":15},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Data Import","count":12},{"language":"default","tag":"REST API","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".graph-preview{position:relative;iframe {\n width: 100%;\n height: 100%;\n border: none;\n /* Required for transparency around corners */\n color-scheme: light dark;\n background: transparent;\n }\n [data-as='iframe'] {\n width: 100%;\n height: 100%;\n border: solid 1px var(--twoslash-border-color);\n border-radius: 8px;\n overflow: hidden;\n }}.prose :where(strong){font-weight:600!important}"}],"page":{"pagePath":"agents/rest/suggestions","slug":"/agents/rest/suggestions","pageMetadata":{"title":"Suggestions Agent","icon":"lightbulb","openapi":"POST /api/v0/suggestions","description":"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations.\n\nThe response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\n","href":"/agents/rest/suggestions"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Generate chart type and data preparation suggestions from a dataset. Send a `,_jsx(_components.code,{children:`GraphConfig`}),` and a prompt, receive suggested visualizations via Server-Sent Events.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(_components.p,{children:[`Besides `,_jsx(_components.code,{children:`config`}),`, `,_jsx(_components.code,{children:`userPrompt`}),`, and optional `,_jsx(_components.code,{children:`metadata`}),`, you may send `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`maxSuggestionCount`})}),` (integer `,_jsx(_components.strong,{children:`1–4`}),`). When set, it is communicated to the model as the target maximum number of suggestions. The stream is not validated or truncated to that count if the model returns more.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`The response is a Server-Sent Events stream. See `,_jsx(_components.a,{href:`/agents/rest/sse`,children:`SSE Format`}),` for parsing details.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: progress`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"message\":\"Generating suggestions...\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: complete`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"suggestions\":[{\"dataPrepPrompt\":\"...\",\"chartType\":\"line\",\"summary\":\"Monthly sales trend\"}]}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Final response data:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` SuggestionsResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` suggestions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Suggestion`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Suggestion`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dataPrepPrompt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` chartType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AiChartType`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` summary`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`http-status-codes`,children:`HTTP Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`Success (stream begins)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Invalid request body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Invalid or missing API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Rate limit exceeded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal server error`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Errors may also arrive as SSE events within a 200 response. See `,_jsx(_components.a,{href:`/agents/rest/errors`,children:`Error Codes`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Suggestions Agent","icon":"lightbulb","openapi":"POST /api/v0/suggestions","description":"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations.\n\nThe response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\n","href":"/agents/rest/suggestions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"HTTP Status Codes","slug":"http-status-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"generateSuggestions","summary":"Suggestions Agent","description":"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations.\n\nThe response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\n","tags":["Agents"],"requestBody":"747fb977-97a6-46de-9e8c-81158a475d2f","responses":{"200":"429b05bb-608c-49ff-821b-30b9130a715a","400":"8fd063b6-4940-4024-a0a9-fe0e8ff6d494","401":"d4aafb62-86e8-4dd5-96d0-42f211e307c7"},"method":"post","type":"path","servers":["a2c1090a-55b6-4535-a38b-21c8b0fc6ff5"],"security":["6cd8b087-1c4d-46fe-9825-ab109a7253be"],"path":"/api/v0/suggestions","baseUrlOptions":["https://agents.graphy.dev"],"title":"Suggestions Agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","description":"The graph configuration object used to render charts. See [Graph Config Schema](/sdk/reference/graph-config) for the complete reference.","properties":{"type":{"type":"string","enum":["line","areaStacked","bar","groupedBar","stackedBar","100StackedBar","column","groupedColumn","stackedColumn","100StackedColumn","combo","pie","donut","funnel","heatmap","scatter","bubble","waterfall","table","mekko"],"description":"The chart type","isRequired":true,"uniqueKey":"config.type","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","uniqueKey":"config.data.columns.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","uniqueKey":"config.data.columns.items.[INDEX].label","typeLabel":"string"}},"uniqueKey":"config.data.columns.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.data.columns","typeLabel":"object[]"},"rows":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"config.data.rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.data.rows","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"config.data","typeLabel":"object"}},"required":["type","data"],"isRequired":true,"uniqueKey":"config","typeLabel":"object"},"userPrompt":{"type":"string","maxLength":10000,"description":"Natural language description of what to visualize","isRequired":true,"uniqueKey":"userPrompt","typeLabel":"string"},"metadata":{"type":"object","description":"Optional tracking information for requests","properties":{"callId":{"type":"string","description":"Required when metadata is provided. Unique identifier for tracking and debugging.","isRequired":true,"uniqueKey":"metadata.callId","typeLabel":"string"},"locale":{"type":"string","enum":["EN_GB","EN_US","AR","PT_PT"],"description":"Locale for responses","uniqueKey":"metadata.locale","typeLabel":"enum\u003cstring>"},"effort":{"type":"string","enum":["low","medium","high"],"description":"Preferred invocation tier; forwarded on the invocation (including nested agents). When omitted, it can be inferred from `storytellingEffort` or defaults to `medium`.","uniqueKey":"metadata.effort","typeLabel":"enum\u003cstring>"},"storytellingEffort":{"type":"string","enum":["none","low","medium","high"],"description":"Deprecated. Prefer `effort`. When set without `effort`, the server derives `effort` for propagation. For chart generation, an explicit value still controls narrative richness when both `effort` and `storytellingEffort` are present (`storytellingEffort` wins for the chart).","uniqueKey":"metadata.storytellingEffort","typeLabel":"enum\u003cstring>"}},"required":["callId"],"uniqueKey":"metadata","typeLabel":"object"},"maxSuggestionCount":{"type":"integer","minimum":1,"maximum":4,"description":"Optional upper bound (1–4) communicated to the model for how many suggestions to aim for. The response is not truncated; the model may still return more items.","uniqueKey":"maxSuggestionCount","typeLabel":"integer"}},"required":["config","userPrompt"],"uniqueKey":"","typeLabel":"object"},"example":{"config":{"type":"column","data":{"columns":[{"key":"month","label":"Month"},{"key":"sales","label":"Sales"},{"key":"region","label":"Region"}],"rows":[{"month":"Jan","sales":100,"region":"North"},{"month":"Feb","sales":120,"region":"South"},{"month":"Mar","sales":115,"region":"North"}]}},"userPrompt":"Show me interesting trends","metadata":{"callId":"req-67890","locale":"EN_US"}},"examples":{"Example":{"title":"Example","value":{"config":{"type":"column","data":{"columns":[{"key":"month","label":"Month"},{"key":"sales","label":"Sales"},{"key":"region","label":"Region"}],"rows":[{"month":"Jan","sales":100,"region":"North"},{"month":"Feb","sales":120,"region":"South"},{"month":"Mar","sales":115,"region":"North"}]}},"userPrompt":"Show me interesting trends","metadata":{"callId":"req-67890","locale":"EN_US"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"429b05bb-608c-49ff-821b-30b9130a715a":{"description":"SSE stream with progress and completion events","content":{"text/event-stream":{"schema":{"oneOf":[{"type":"object","title":"Progress event","description":"SSE event name is \"progress\"","properties":{"message":{"type":"string","uniqueKey":"oneOf.0.message","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"Progress event · object"},{"type":"object","title":"Suggestions complete event","description":"SSE event name is \"complete\"","properties":{"suggestions":{"type":"array","items":{"type":"object","properties":{"dataPrepPrompt":{"type":"string","description":"Prompt describing how to prepare the data for this chart","isRequired":true,"uniqueKey":"oneOf.1.suggestions.items.[INDEX].dataPrepPrompt","typeLabel":"string"},"chartType":{"type":"string","enum":["line","areaStacked","bar","groupedBar","stackedBar","100StackedBar","column","groupedColumn","stackedColumn","100StackedColumn","combo","pie","donut","funnel","heatmap","scatter","bubble","waterfall","table","mekko"],"description":"Suggested chart type","isRequired":true,"uniqueKey":"oneOf.1.suggestions.items.[INDEX].chartType","typeLabel":"enum\u003cstring>"},"summary":{"type":"string","description":"Short description of what the chart would show","isRequired":true,"uniqueKey":"oneOf.1.suggestions.items.[INDEX].summary","typeLabel":"string"}},"required":["dataPrepPrompt","chartType","summary"],"uniqueKey":"oneOf.1.suggestions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.suggestions","typeLabel":"object[]"}},"uniqueKey":"oneOf.1","typeLabel":"Suggestions complete event · object"},{"type":"object","title":"Error event","description":"SSE event name is \"error\"","properties":{"message":{"type":"string","uniqueKey":"oneOf.2.message","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"Error event · object"}],"uniqueKey":"","typeLabel":"Progress event · object | Suggestions complete event · object | Error event · object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8fd063b6-4940-4024-a0a9-fe0e8ff6d494":{"description":"Bad Request - Invalid request body","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"d4aafb62-86e8-4dd5-96d0-42f211e307c7":{"description":"Unauthorized - Invalid or missing API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"6cd8b087-1c4d-46fe-9825-ab109a7253be":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your Graphy API key (starts with graphy_). Create one in the Graphy console at https://agents.graphy.dev/console/","scopes":[]}}},"servers":{"a2c1090a-55b6-4535-a38b-21c8b0fc6ff5":{"url":"https://agents.graphy.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your Graphy API key (starts with graphy_). Create one in the Graphy console at https://agents.graphy.dev/console/","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Graphy API key (starts with graphy_). Create one in the Graphy console at https://agents.graphy.dev/console/","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"agents/openapi.yaml"},"subdomain":"graphy-26e77454","siteName":"Graphy SDK","title":"Suggestions Agent - Graphy SDK","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-15T10:06:10.405Z","originalFileLocation":"agents/rest/suggestions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations. The response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Graphy SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Suggestions Agent - Graphy SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations. The response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Graphy SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.graphy.dev/agents/rest/suggestions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://graphy-26e77454.mintlify.site/_mintlify/api/og/v2?division=REST+API\u0026amp;title=Suggestions+Agent\u0026amp;description=Generate+chart+type+and+data+preparation+suggestions+from+a+dataset.+Send+a+GraphConfig+and+a+prompt%2C+receive+suggested+visualizations.%0A%0AThe+response+is+a+Serve\u0026amp;theme=da1a2e76c9a462caed72bdb3\u0026amp;signature=ba3271086650e50b99174a0039ce83b0740535c8a69e87b533dbe3c3eaca4a0e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Suggestions Agent - Graphy SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations. The response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://graphy-26e77454.mintlify.site/_mintlify/api/og/v2?division=REST+API\u0026amp;title=Suggestions+Agent\u0026amp;description=Generate+chart+type+and+data+preparation+suggestions+from+a+dataset.+Send+a+GraphConfig+and+a+prompt%2C+receive+suggested+visualizations.%0A%0AThe+response+is+a+Serve\u0026amp;theme=da1a2e76c9a462caed72bdb3\u0026amp;signature=ba3271086650e50b99174a0039ce83b0740535c8a69e87b533dbe3c3eaca4a0e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/graphy-26e77454/3E2dlZth7rYU8xke/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Graphy SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D4594C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.graphy.dev/agents/rest/suggestions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agents/rest/suggestions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.graphy.dev/#organization\",\"name\":\"Graphy SDK\",\"url\":\"https://docs.graphy.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/graphy-26e77454/4jj7tMsipmIkU_-h/assets/logo-black.png?fit=max\u0026auto=format\u0026n=4jj7tMsipmIkU_-h\u0026q=85\u0026s=6b44d903b3cc61bf496cef3fef3818d8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.graphy.dev#website\",\"name\":\"Graphy SDK\",\"url\":\"https://docs.graphy.dev\",\"publisher\":{\"@id\":\"https://docs.graphy.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.graphy.dev/agents/rest/suggestions#webpage\",\"url\":\"https://docs.graphy.dev/agents/rest/suggestions\",\"name\":\"Suggestions Agent\",\"description\":\"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations. The response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\",\"dateModified\":\"2026-04-15T10:06:10.405Z\",\"isPartOf\":{\"@id\":\"https://docs.graphy.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.graphy.dev/agents/rest/suggestions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.graphy.dev/agents/rest/suggestions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://docs.graphy.dev/agents/rest/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Suggestions Agent\",\"item\":\"https://docs.graphy.dev/agents/rest/suggestions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.graphy.dev/agents/rest/suggestions#apireference\",\"headline\":\"Suggestions Agent\",\"name\":\"Suggestions Agent\",\"description\":\"Generate chart type and data preparation suggestions from a dataset. Send a GraphConfig and a prompt, receive suggested visualizations. The response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\",\"url\":\"https://docs.graphy.dev/agents/rest/suggestions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.graphy.dev/agents/rest/suggestions#webpage\"},\"dateModified\":\"2026-04-15T10:06:10.405Z\",\"publisher\":{\"@id\":\"https://docs.graphy.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.graphy.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Graphy SDK\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Graphy SDK\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agents/rest/suggestions.md","siteName":"Graphy SDK","nav":{"global":null,"tabs":[{"tab":"SDK","icon":"chart-line","pages":[{"title":"SDK","href":""}]},{"tab":"Agents API","icon":"robot","groups":[{"group":"Get Started","pages":[{"title":"Quickstart","icon":"rocket","href":"/agents/quickstart"},{"title":"API keys","icon":"key","href":"/agents/api-keys"},{"title":"Overview","icon":"microchip-ai","href":"/agents/overview"},{"title":"Version management","icon":"code-branch","href":"/agents/versioning"},{"title":"Licence \u0026 evaluation","icon":"scale-balanced","href":"/licence/evaluation"}]},{"group":"TypeScript SDK","pages":[{"title":"Installation","icon":"download","href":"/agents/sdk/installation"},{"title":"Configuration","icon":"gear","href":"/agents/sdk/configuration"},{"title":"Chart Maker Agent","icon":"robot","href":"/agents/sdk/chart-maker"},{"title":"Suggestions Agent","icon":"lightbulb","href":"/agents/sdk/suggestions"},{"title":"Mutation Agent","icon":"table","href":"/agents/sdk/mutate"},{"title":"Annotation Agent","icon":"highlighter","href":"/agents/sdk/annotate"},{"title":"Narrative Agent","icon":"feather","href":"/agents/sdk/narrate"},{"title":"Extract Agent","icon":"file-import","href":"/agents/sdk/extract"},{"title":"Evaluation","icon":"ranking-star","href":"/agents/sdk/evaluate"},{"title":"Streaming","icon":"signal-stream","href":"/agents/sdk/streaming"},{"title":"Error Handling","icon":"circle-exclamation","href":"/agents/sdk/errors"}]},{"group":"REST API","pages":[{"title":"Authentication","icon":"key","href":"/agents/rest/authentication"},{"title":"Keyless access","icon":"door-open","href":"/agents/rest/keyless"},{"title":"Chart Maker Agent","icon":"robot","openapi":"POST /api/v0/generate","description":"Modify charts using natural language. Send a GraphConfig and a prompt, receive an updated GraphConfig.\n\nThe response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\n","href":"/agents/rest/chart-maker"},{"title":"Suggestions Agent","icon":"lightbulb","openapi":"POST /api/v0/suggestions","href":"/agents/rest/suggestions"},{"title":"Mutation Agent","icon":"table","openapi":"POST /api/v0/mutate","description":"Transform a chart's dataset with natural language — filter, group, aggregate, derive, sort.\n\nThe response is a Server-Sent Events (SSE) stream with progress, complete, and error events.\n","href":"/agents/rest/mutate"},{"title":"Annotation Agent","icon":"highlighter","openapi":"POST /api/v0/annotate","href":"/agents/rest/annotate"},{"title":"Narrative Agent","icon":"feather","openapi":"POST /api/v0/narrate","href":"/agents/rest/narrate"},{"title":"Extract Agent","icon":"file-import","openapi":"POST /api/v0/extract","href":"/agents/rest/extract"},{"title":"Evaluation","icon":"ranking-star","openapi":"POST /api/v0/evaluate","href":"/agents/rest/evaluate"},{"title":"SSE Format","icon":"signal-stream","href":"/agents/rest/sse"},{"title":"Error Codes","icon":"circle-exclamation","href":"/agents/rest/errors"}]},{"group":"Reference","pages":[{"title":"Type Reference","icon":"brackets-curly","href":"/agents/reference/types"}]}]},{"tab":"Data Import","icon":"file-import","pages":[{"title":"Data Import","href":"/data-import-utils"}]},{"tab":"SDK (Classic)","icon":"chart-column","pages":[{"title":"SDK (Classic)","href":"/sdk/core/quickstart"}]}]},"basePath":"","title":"Suggestions Agent - Graphy SDK","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}