What it is for
The Metabase component lets flooows query questions and dashboards on your instance, fetch their results or images and manage embedding. It is used to send recurring reports by email or chat and to feed other systems with BI data.
This component has no triggers: it is used as an action inside flows started by other triggers, such as a schedule or a webhook.
Set up the connection
Authentication type: Custom credentials
- 1Add a Metabase step and click "Connect".
- 2In Metabase API base URL enter your instance address, for example https://metabase.yourcompany.com.
- 3As an admin, create a key under Admin settings > Authentication > API keys and paste it into API key.
- 4If you will use embedding actions, copy the secret key from Admin settings > Embedding into Embedding key.
- 5Save the connection with a descriptive name.
| Connection field | Type | Required |
|---|---|---|
| Metabase API base URL | Text | Yes |
| API key | Secret key | Yes |
| Embedding key | Text | No |
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Get question: enter the Metabase question ID (the number in the question URL) and, if it has filters, fill Parameters with slug -> value pairs.
- Get Question PNG Preview and Get the graph of the question render a chart image you can attach to an email or message.
- Get Dashboard Questions fetches every question in a dashboard from the Metabase Dashboard ID.
- Embed question enables embedding for a question and sets its parameters.
Tips
- •Pair a schedule trigger with Get question and an email step to build automatic weekly reports.
- •Raise Wait Time (seconds) if the chart takes long to render.
- •Use an API key restricted to the collections you need.
Actions (6)
Operations available as flow steps. Expand each one to see its fields.
Get question2 fields
| Field | Type | Required |
|---|---|---|
| Metabase question ID | Text | Yes |
| Parameters (slug name -> value) | Key / value pairs | No |
Get Question PNG Preview1 fields
| Field | Type | Required |
|---|---|---|
| Metabase question ID | Text | Yes |
Get Dashboard Questions2 fields
| Field | Type | Required |
|---|---|---|
| Metabase Dashboard ID | Text | Yes |
| Parameters (slug name -> value) | Key / value pairs | No |
Embed question3 fields
| Field | Type | Required |
|---|---|---|
| Metabase question ID | Text | Yes |
| Enable embedding | Yes / No | Yes |
| Parameter settings | Dynamic fields | No |
Get the graph of the question4 fields
| Field | Type | Required |
|---|---|---|
| Metabase question ID | Text | Yes |
| Parameters (slug name -> value) | Key / value pairs | No |
| The name of the graph (without the extension) | Text | No |
| Wait Time (seconds) | Number | Yes |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
401 error when running
Check the API key is valid and the base URL has no extra path.
Filters are not applied
Make sure the Parameters slugs match the question's filter names.
The image comes out empty
Increase Wait Time (seconds) so the chart has time to render.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
