⚡️ Ideas
Matthew Barlow Matthew Barlow Jul 8, 2023

Display API Output As Notification

Explain the problem as you see it

When using the "Make API Request" command the options for API output are "as child," "as sibling," or "replace."

When making API requests that return transient information it is not desirable to store the output in the graph. Instead, an option to display the output as a notification message would be preferable.

Why is this a problem for you?

I have a Tana command that logs all of my completed tasks to Airtable. I also have an API that tells me how many tasks I have completed today. I'd like to call that API to see my daily stats as a notification, but I don't want to store it in the graph, because the response doesn't hold any long-term value.

Suggest a solution

Provide an output option for the Make API Request command that allows the output to be displayed as a notification rather than as output to the graph.

⁨3⁩ ⁨Comments⁩

In reply to Maciej Smoła Maciej Smoła

Sure! I will post more in the Slack channel, but here is a screenshot of the command that writes the record to Airtable when a task is completed.

Screenshot 2023-07-12 at 3.02.22 PM.png

Then I have a script in https://val.town that retrieves statistics (number of completed task records today). Here is a gist. I currently have it pushing notifications to pushover, but would love to have the notifications appear in Tana instead as a popup.