Skip to content
Metabase

How to use Metabase

Cost: 1 credit per runTop 100 · #18Full guide

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

  1. 1Add a Metabase step and click "Connect".
  2. 2In Metabase API base URL enter your instance address, for example https://metabase.yourcompany.com.
  3. 3As an admin, create a key under Admin settings > Authentication > API keys and paste it into API key.
  4. 4If you will use embedding actions, copy the secret key from Admin settings > Embedding into Embedding key.
  5. 5Save the connection with a descriptive name.
Connection fieldTypeRequired
Metabase API base URLTextYes
API keySecret keyYes
Embedding keyTextNo

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
FieldTypeRequired
Metabase question IDTextYes
Parameters (slug name -> value)Key / value pairsNo
Get Question PNG Preview1 fields
FieldTypeRequired
Metabase question IDTextYes
Get Dashboard Questions2 fields
FieldTypeRequired
Metabase Dashboard IDTextYes
Parameters (slug name -> value)Key / value pairsNo
Embed question3 fields
FieldTypeRequired
Metabase question IDTextYes
Enable embeddingYes / NoYes
Parameter settingsDynamic fieldsNo
Get the graph of the question4 fields
FieldTypeRequired
Metabase question IDTextYes
Parameters (slug name -> value)Key / value pairsNo
The name of the graph (without the extension)TextNo
Wait Time (seconds)NumberYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

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