A query is a way to request additional data if the trigger doesn’t provide it. IFTTT initiates a Query execution as a result of an updated trigger. Some example queries are "List busy windows" or "Search events".
How can I use a query?
Queries can be used alongside triggers to build more powerful experiences in Applets. The data from the two can be evaluated in an Applet and an action runs or can be skipped, depending on the logic in your filter code. Queries, along with filter code, unlock Applets to go beyond if this to if this and this.
For example, you can have an Applet do the following:
- Trigger: If the temperature rises above a certain threshold
- Query: Current electricity price
- Filter code: Check to see if the electricity price is above a certain threshold, if false, run action
- Action: Turn on the AC
Do I need to use filter code to use a query?
Filter code is not required to use queries.
For example, you can have an Applet do the following:
- Trigger: Press a button (using the button widget)
- Query: Current weather
- Action: Email me the current weather condition