Skip to main content

Work with data in apps

Use this guide to learn how to connect resources and write functions in apps. For the full list of resources available in apps, refer to the resources reference.

Connect resources​

As you build, the agent connects resources to your app. The agent can only connect resources for which you have Edit or Own access. Learn more about access rules.

When building an app, you can suggest that the agent uses a particular resource by @-tagging it by name. If you don't know what resource is most appropriate, the agent can view the schemas of available resources and intelligently suggest those to which you can connect. You can always deny or remove these resources.

Admins control who can use, edit, and manage resources at an organization level. They can also create resource environments in order to further control access to sensitive production data.

Write functions​

Code in your app that accesses a resource is called a function. While the agent is building, you will be asked to approve functions before they run. You can also click See details to open the Function playround.

If you cancel the function run, the agent asks you what can be done to improve the function with a pop-up in the Build tab.

Function playground​

Inside the Function playground, you can view and edit the parameters for the function, run the function, and view the function's run history.

You can also choose to view the exact code that the function runs against the resource, or visualize the control flow of the function as connected blocks, similar to a workflow.