Developer Tools

Add Sanity to your AI agent

Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications

Things your agent can do in Sanity
24

Things your AI can do in Sanity

Your FormWise AI can handle any of these in Sanity — on its own, without you needing to click a button.

  • Delete Document

    Popular

    Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.

  • Get Project

    Popular

    Retrieve details for the Sanity project configured on the connection by its ID, including available project information such as display name, organization, studio host, and timestamps.

  • List Resource Users

    Popular

    List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.

  • List Datasets

    Popular

    List datasets in the Sanity project configured on the connection, optionally including statistics or filtering by profile or add-on parent.

  • Mutate Documents

    Popular

    Apply or dry-run one atomic batch of create, replace, conditional-create, patch, and delete mutations in a Sanity dataset. Calls commit unless dry_run is true; a delete with purge permanently removes document history.

  • Query Documents

    Popular

    Execute a GROQ query against a Sanity dataset in the project configured on the connection. Supports optional parameters, perspective control, and CDN use; results can be any JSON value, including arrays, objects, scalars, or null.

  • Validate Credential

    Popular

    Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.

  • Add Default Role to Users

    Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.

  • Create Attribute Definition

    Create a user attribute definition for a Sanity resource with a unique key and a string, number, or boolean type.

  • Create Prompt Post

    Send a one-shot prompt to the Sanity Content Agent without maintaining conversation context. HTTP errors are returned in the response's raw_response field.

  • Delete User Attribute Definition

    Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.

  • Delete User Attributes

    Delete specified custom attributes from a Sanity user within an organization. A 404 or empty response produces an empty attribute list, which does not establish the user's remaining attributes.

Show 12 more things it can do
  • Get Document by ID

    Fetch a document by ID from a Sanity dataset in the project configured on the connection. The response may instead report that the document was omitted.

  • Get Invite By Token

    Retrieve an invite by its public token for a specified resource. Returns invite details when found; an HTTP 404 is returned as found=false.

  • Get Organization Role

    Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.

  • Get Permission

    Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.

  • Get Robots

    Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.

  • Get Role

    Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.

  • List Organization Roles

    List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.

  • List User Attributes

    Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.

  • Query All Screening

    Execute a GROQ query against a Sanity dataset, defaulting to screening documents. Supports optional query parameters; requests are sent without authentication headers.

  • Update Organization ACL

    Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.

  • Update User Attributes Values

    Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.

  • Upload Image Asset

    Upload raw image bytes to a dataset in the connected Sanity project.

Built for the way you actually work

No code, no engineers

Connect in a few clicks and start using your AI right away. If you can use the apps you already love, you can do this.

Sounds like you, not like a bot

Train your AI on your offer, your voice, and the way you actually talk to clients — it picks up where you leave off.

Plugs into the stack you already use

No need to rip out your CRM, your scheduler, or your email tool. Your AI works inside the apps running your business today.

Your data stays yours

Client conversations, lists, and credentials are scoped to your workspace. Nothing gets shared, sold, or used to train anyone else’s AI.

What you can do once Sanity is connected

Onboard new clients without lifting a finger

When someone signs up, your AI greets them, sets up their next step in Sanity, and keeps the momentum going — even at 2am.

Reply to leads in seconds, not days

Your AI watches Sanity for new inquiries, answers questions in your voice, and books the call before they cool off.

Get your weekends back

Hand off the repetitive Sanity work — follow-ups, reminders, updates, simple admin — and stop being the bottleneck in your own business.

How to connect Sanity to your agent

  1. 1

    Start using FormWise for free

    Sign up in under a minute.

  2. 2

    Find Sanity in your connected apps

    Inside FormWise, open Connectors and look for Sanity.

  3. 3

    Hit "Connect"

    Click "Connect Sanity" and log in like you normally would. We only ask for the permissions your AI actually needs.

  4. 4

    Tell your AI what to do in Sanity

    Build a quick AI Agent (it's like writing instructions, not code), and pick the Sanity actions you want your AI to handle.

  5. 5

    Watch it run

    Send it a real-world task and watch your AI take care of Sanity for you. Tweak the wording until it feels just right.

Powered by the AI you already trust

Your Sanity workflow runs on the same world-class AI used by ChatGPT, Claude, and Gemini. We handle the technical part — you just tell your AI what to do, in plain English.

  • OpenAI
  • Anthropic Claude
  • Google Gemini

Questions other Sanity users had before signing up

Do I need to know how to code?

Not even a little. If you can use Sanity today, you can set this up. You'll connect Sanity, tell your AI what it should help with, and you're live. The whole thing is built for coaches, course creators, agencies, and operators — not engineers.

Will my clients know they're talking to an AI?

Only if you want them to. Your FormWise AI is trained on your voice, your offer, and the way you actually communicate — so it sounds like a thoughtful team member, not a clunky chatbot. Most people can't tell.

Can I make it sound like me?

Yes. You can give your AI examples of how you write, the questions you usually ask new clients, the way you handle objections, and the language you use about your offer. The more you give it, the more it sounds like you wrote it.

What if I want to take over a conversation?

You're always in control. You can step in at any point, take over from your AI, or stop it from sending messages until you've reviewed them. Think of it as a teammate, not a replacement.

Is my client data safe?

Yes. Your Sanity login and client information stay scoped to your workspace. We don't sell it, we don't share it, and we don't use your data to train anyone else's AI. You can disconnect Sanity or delete everything any time.

What happens when Sanity updates their app?

We handle it. When Sanity adds new features or changes how something works, we update the integration in the background. You don't have to do anything — your AI just keeps working.

How fast can I actually get this running?

Most people are up and running the same day they sign up. Connecting Sanity takes a few minutes. Teaching your AI to handle the work the way you'd want it done is the part worth slowing down for.

What is FormWise?

FormWise is the AI agent builder for coaches, course creators, and agencies. You connect the apps you already use — like Sanity — train your AI on your offer and voice, and let it handle the work you've been doing manually: onboarding, follow-ups, support, admin. No code, no developers, no engineering team required.

Can I sell AI agents to my clients?

Yes. A lot of FormWise users build AI assistants and sell them as part of their offer — done-for-you AI setups, white-label assistants for client businesses, custom GPTs trained on a client's brand. You can charge a setup fee, a monthly retainer, or both.

Can I embed my AI on my website or in my course?

Yes. Every AI you build in FormWise can be embedded on your site, dropped into your course platform, or shared as a standalone link. Your clients and students just open it like any other web page — no app to download, no login hoops.

Do I need to know anything about AI to use this?

No. If you can describe what you want your AI to do in plain English — "greet new clients, ask these 3 questions, book them a call" — FormWise can build it. We handle the models, the prompts, the connections. You handle the part you already know: what your business actually needs.

About Sanity on FormWise

Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications

Connect Sanity once and your FormWise AI gets 24 things it can do inside it. That means your AI can handle the Sanity work in your business — the messages, the updates, the follow-ups, the admin — the way you would, just faster and around the clock.

You don't need to know how any of it works under the hood. We take care of keeping the connection alive, retrying if something fails, and making sure your data only ever moves where you tell it to.

New to Sanity? Take a look at www.sanity.io.

Stop doing the Sanity work yourself

Hand it off to an AI assistant that sounds like you, works around the clock, and never forgets a follow-up. Free to start.