Skip to content

Use Sanity with Bluedeer's AI assistant

Ask Bluedeer to query your Sanity documents, read your schema, edit content and publish drafts, all in plain words.

Do you represent the company behind Sanity? Claim this listing to show your logo and your company's name on it.

Sanity and Bluedeer

Sanity is a headless content platform. Developers define content types in a schema, and editors write documents that websites and apps then read. A single project can hold many datasets, plus releases that group changes, and a Media Library for images, video and files.

With Sanity connected, you describe what you need and the assistant does the lookups. It runs GROQ queries against a dataset, reads the deployed schema first so it knows the field names, and shows you the documents it found. When you ask for a change, it patches the documents, and drafts stay drafts until you ask it to publish them.

It suits editors who want an audit of content without writing queries, and developers who want to change schema fields or check a dataset while they work. The assistant can also turn query results into a table or a file in Bluedeer, or combine Sanity with other connectors in one request.

What you can ask Bluedeer to do in Sanity

  • Query documents with GROQ

    Describe the documents you want, such as all draft articles missing a cover image, and the assistant writes and runs a GROQ query against your dataset. Results over 64 KiB are rejected by the server, so large lists are fetched in smaller slices.

  • Read your deployed schema

    Fetch the schema deployed for a project and dataset, or read a single document type, so the assistant knows which fields exist and how they are typed before it queries or edits anything.

  • Edit documentsAsks you first

    Create documents as drafts, or patch existing ones, up to 25 documents in one call. The assistant can validate documents against the deployed schema without changing them, which helps catch mistakes before you publish.

  • Publish and unpublish contentAsks you first

    Publish drafts, move published documents back to drafts, or discard drafts and keep the published version. You name the documents or describe them, and the assistant finds them first.

  • Change schema fieldsAsks you first

    Add, replace or remove top-level fields on a document or object type, or deploy and remove schema types. The assistant reads the type and its schema version first, then applies the change.

  • Work with releasesAsks you first

    List active and scheduled releases, create a release, and add document versions to it. Scheduling, publishing, archiving and deleting a release still happen in Sanity Studio.

  • List projects and datasets

    List your organizations, projects and datasets and check which account is signed in, so the assistant works on the right one.

Example requests for Sanity

  • In the production dataset of our Marketing Site project, list every published article with no author set, with title and last updated date

    The assistant reads the schema, runs a GROQ query for published articles whose author field is empty and shows a table of titles and dates.

  • Add a boolean field called featured to the product type in the staging dataset of our Storefront project

    It reads the product type and its schema version, then shows an approval card for adding the field. After you approve, it applies the change and confirms the new field is in the schema.

  • Every Monday at 9:00, list drafts in our Marketing Site production dataset that were changed in the last 7 days

    Scheduled taskThis becomes a scheduled task. Querying needs no approval, so each run posts the list of recently changed drafts in the chat where you set it up and in your Inbox.

  • Publish the draft blog posts in the Marketing Site production dataset whose title starts with Spring sale

    The assistant queries for matching drafts, lists them for you to check, and asks before publishing. Once you approve, it publishes them and reports which ones went live.

How to connect Sanity

  1. Open Customization, then the Connectors tab.
  2. In Popular connectors, find Sanity and select Connect.
  3. Sign in with your own Sanity account on its page and approve access. There is nothing to paste.
  4. Bluedeer brings you back to Customization, and the connector is ready.

Sanity's server uses your Sanity account, and its documentation says sessions typically expire after 7 days, so you may be asked to sign in again from time to time.

Only you can use the connectors you add. In a shared workspace, an owner or admin first turns Sanity on in the workspace's Connectors settings, and then each person whose seat includes connectors connects their own account.

What Bluedeer can and cannot do in Sanity

The assistant can only do what your Sanity account is allowed to do in each project and dataset. Sanity's documentation notes that if a tool such as querying documents is missing or failing, the cause is usually account permissions on that project.

Some things are out of reach. Custom validation rules are skipped over the connection, and releases cannot be scheduled, published, archived or deleted from here. Those steps stay in Sanity Studio.

A Sanity tool that says it only reads starts at Don't ask. Every other tool shows you an approval card first, and runs only when you confirm, until you change its rule in Manage workspace, Connector permissions.

Plans

The Pricing page shows which plans include connectors.

Compare plans

Questions about Sanity and Bluedeer

Can the assistant publish or change my Sanity content?

Yes. It can create drafts, patch documents, publish and unpublish them, and change schema fields. Each of those shows an approval card first. Querying, reading schemas and reading usage only read, so they need no approval.

Which project and dataset does Bluedeer work on?

Your Sanity account can reach several organizations, projects and datasets. Name the project and dataset in your request, or ask the assistant to list them first. It can then query or edit the one you chose.

Is there a limit on how much a query can return?

Sanity rejects query results larger than 64 KiB, so the assistant uses projections and slices to fetch large sets in batches. A single patch call also covers at most 25 documents, so bigger edits run in several steps.

Can the assistant schedule a release to go live?

No. It can list releases, create one and add document versions to it, but scheduling, publishing, archiving and deleting a release must be done in Sanity Studio.

Request removal or correction

The owner of Sanity owns the name and logo on this page. To ask for a correction or removal, use the contact form. You do not need an account. See also Trademarks.

Try Sanity with Bluedeer.

Start free, then connect Sanity on a plan that includes it.

Sanity is a trademark of its owner. Bluedeer is not affiliated with Sanity.