Bring world city AQI rankings into Slack requests
When a broad comparison is useful, retrieve a current ranking without turning the question into a separate research session.
Trigger
Channel Message Received
Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.
Action
Get World AQI Rankings
Tool to retrieve a ranking of cities worldwide based on current AQI. Use when you need a global AQI ranking list after authenticating with a valid AirVisual API key. If /world-rankings is not accessible, gracefully falls back to /nearest_city and returns a single-item list based on the nearest city.
Why this helps
A one-off global comparison can pull attention away from the work at hand and require multiple manual searches.
- Retrieve worldwide city AQI rankings when requested.
- Give a team a shared starting point for a broad comparison.
- Keep an exploratory question from becoming an open-ended research task.
Setup
Build it in a few focused steps.
- 1Connect Slack and IQAir AirVisual to Notis once in the portal.
- 2Create an automation in the portal or ask Notis in plain language.
- 3Tell Notis to retrieve world AQI rankings when a Slack message asks for a global city comparison.
- 4Select the Slack channel message trigger, choose the run-report channel, and test with a real ranking request.
Questions about this workflow
Does this require a city name?
No. It retrieves a worldwide ranking rather than data for one specified city.
What if global rankings are unavailable?
The action description notes that the service may fall back to a nearest-city result if the world rankings endpoint is unavailable.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Slack to Iqair airvisual. A trigger fires from one place; an action lands in another.
Slack triggers
Iqair airvisual actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Get Air Quality Forecast Data
Tool to retrieve air quality forecast data for a specified city, state, and country. Use after confirming location details.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Get Cities
Tool to list supported cities in a specified state and country. Use when you need to retrieve cities for a given state/country.
New Channel Created Trigger
Triggered when a new channel is created in Slack.
Get City Air Quality
Tool to retrieve air quality data for a specific city. Use when you need current pollution and weather data by specifying city, state, and country.
Channel Message Received
Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.
Get supported countries
Tool to list all supported countries. Use when you need to know which countries are supported by the AirVisual API.
Direct Message Received
Triggered when a new direct message (DM) is sent to a user in Slack. Catches all DMs across all DM channels.
Get Historical AQI Data
Tool to retrieve historical air quality data for a city. Use after confirming city, state, and country when you need AQI readings over time.
Message Reaction Added
Triggered when a reaction is added to a message in Slack. Supports optional filtering by channel and emoji name.
Get Nearest City Air Quality
Tool to retrieve air quality data for the nearest city based on latitude/longitude or IP. Use when you have precise location data or want to geolocate an IP for air quality.
Message Reaction Removed
Triggered when a reaction is removed from a message in Slack. Supports optional filtering by channel and emoji name.
Get Nearest Station Air Quality
Tool to get nearest station air quality. Use when you have GPS coordinates and need closest station’s AQI.
Reaction Added Trigger
DEPRECATED: use `SLACK_MESSAGE_REACTION_ADDED` instead. Triggered when a reaction is added to a message in Slack.
Get States
Tool to list supported states in a specified country. Use when you need to retrieve states/provinces for a given country.
Connect any two apps with Notis in the middle.
Slack and Iqair airvisual, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Iqair airvisual.