Grok · xAI

How Grok reads marketing email

In our October 2026 test, Grok found 32 of 35 offers placed in different parts of marketing emails (91%), the most of the four agents we tested. It read text inside images, attachments, hidden text, metadata and linked pages.

Offers found
32 of 35
Share found
91%
Rank of four agents
#1

Based on the Magical Casa agent email tests: 35 offer placements and 2 controls, read through Gmail, recorded October 7, 2026. Page updated .

How does Grok get to an email?

xAI's assistant. It reads Gmail through a connector the user adds, which is read-only by default.

We sent 37 realistic retail emails to one Gmail account. Each of 35 hid a unique discount offer in a different part of the email; two were controls with no offer to find. We then asked four AI agents connected to that inbox to find each offer. This page covers what Grok did with those emails.

  • Grok said its first answers relied on the plain-text version of the email and the images.
  • Part-way through the test it announced it would also inspect the formatted HTML, attachments and links, and its later answers reflect that.
  • It did not say which tool read the images, so we cannot tell whether that was the model's own vision or the connector.

What does Grok read in an email?

  • The subject line and visible copy
  • The plain-text version, including an offer that appeared only there
  • Hidden text: display:none, visibility:hidden, the hidden attribute, off-screen and zero-size text, and the preheader
  • Alt text, link tooltips, aria-labels, data attributes, meta description, JSON-LD and microdata
  • Text inside remote, inline and background images, and inside an attached PNG
  • Text and JSON attachments
  • Linked pages, linked JSON, two-step links, redirects, URL parameters, and a URL hidden in a data attribute

What does Grok miss?

  • An offer in the formatted HTML that was left out of the plain-text version (first read)
  • An offer inside an HTML comment (first read)
  • An offer in a custom email header (no agent found this)

Other things Grok did

  • When asked again after changing its approach, Grok found the HTML-only offer and the HTML-comment offer. Our totals count first answers only.
  • It caught both conflicts: different codes in the HTML and plain-text versions, and an image that disagreed with its own alt text.
  • It passed both controls, reporting an unavailable offer as unavailable and inventing nothing when no offer existed.

How do I write email that Grok can read?

  1. Keep the plain-text version complete and in step with the HTML. Grok's first read leaned on it.
  2. Grok read every kind of hidden text except an HTML comment. Remove stale codes and test copy from hidden blocks.
  3. Make every version of an offer agree. Grok reports conflicts between an image and its alt text, or between HTML and plain text.

Grok's result for every placement

Each row is one test email. "People" is our estimate of whether a typical reader, with images on, would see the offer.

Magical Casa agent email tests, recorded October 7, 2026: which offer placements each agent found.
Where the offer wasGrokPeople
Visible copy and email versions
Visible offerComplete offer in the normal HTML and the plain-text body.FoundLikely
HTML onlyOffer is in the formatted email but left out of the plain-text version.MissedLikely
Plain text onlyOffer is in the plain-text version; the formatted email omits it.FoundUnlikely
Subject lineComplete offer appears only in the subject.FoundLikely
HTML and text conflictHTML and plain text give different codes for the same deal. Correct means finding both.FoundPartly
Long emailVisible offer sits after more than 110 KB of HTML.FoundDepends
Hidden text
HTML commentOffer is inside a source comment that never displays.MissedUnlikely
display:noneOffer text is in the HTML but set not to display.FoundUnlikely
visibility:hiddenOffer text takes up space but is invisible.FoundUnlikely
hidden attributeOffer is inside an element marked hidden.FoundUnlikely
Off screenOffer text is positioned far outside the visible message.FoundUnlikely
Zero-size textOffer text is collapsed with zero-size styling.FoundUnlikely
PreheaderOffer is in the hidden preview-text block at the top.FoundDepends
Labels and metadata
Custom email headerOffer sits in an extra email header, outside the subject and body.MissedUnlikely
Image alt textOffer is in the image description, not the pixels.FoundDepends
Link tooltipOffer is in the title attribute of a visible link.FoundDepends
Accessibility labelOffer is in an aria-label on a visible block.FoundDepends
Custom data attributeOffer is in a data- attribute on a visible element.FoundUnlikely
Nonstandard attributeOffer is in a made-up HTML attribute.FoundUnlikely
Page meta descriptionOffer is in the HTML document's description metadata.FoundUnlikely
JSON-LDOffer is in a structured-data block in the HTML head.FoundUnlikely
MicrodataOffer is in structured metadata inside the HTML body.FoundUnlikely
Text inside images
Remote bannerOffer is printed in a remotely hosted image; the alt text is neutral.FoundLikely
Inline imageOffer is printed in an image embedded in the message itself.FoundLikely
Background imageOffer is printed in a CSS background image.FoundDepends
Image and alt text conflictThe pixels say 19% and the alt text says 27%, with different codes. Correct means finding both.FoundPartly
Attachments
Text attachmentOffer appears only in an attached .txt file the body points to.FoundLikely
JSON attachmentOffer appears only in an attached .json file.FoundDepends
Image attachmentOffer is printed in an attached PNG.FoundLikely
Links and linked pages
URL parametersOffer is in the link's URL; the linked page has no offer.FoundUnlikely
Linked JSONA visible link opens a JSON file holding the terms.FoundDepends
Linked web pageA visible link opens a readable HTML offer page.FoundLikely
Two-step linkThe link opens a page with a second link to the offer details.FoundDepends
Hidden URLThe offer URL is in a data attribute, not a clickable link.FoundUnlikely
RedirectA visible offer link redirects to a JSON offer.FoundDepends
Controls: no offer to find
Unavailable offerThe offer link returns "unavailable". Correct means saying so without inventing terms.PassLikely
No member offerNo discount exists. Correct means reporting only the shipping perk.PassLikely

How does Grok compare with other agents?

Questions about Grok and email

Can Grok read marketing emails in Gmail?

Yes. With a Gmail connector added, Grok found 32 of 35 test offers in our October 2026 study, including offers in images, attachments and linked pages.

Does Grok read the HTML or the plain-text version of an email?

In our test Grok's first answers relied on the plain-text version: it missed an offer that was only in the HTML and found one that was only in the plain text. It later said it would inspect the HTML as well.

Can Grok read text inside images in an email?

Yes. Grok recovered offers printed in a remote banner, an inline image, a CSS background image and an attached PNG. It was the only agent to read the inline image.

Does Grok follow links in an email?

Yes. Grok recovered offers from a linked web page, linked JSON, a two-step link and a redirect, and it opened a URL that was stored in a data attribute, not a clickable link.

What this does not show

  • One study, one Gmail account, one answer per agent per email. Agents and their connectors change often.
  • Each agent used its own tools, including browser help in some cases, so this is not a like-for-like benchmark.
  • A miss shows the offer did not reach the answer. It does not prove the agent can never read that part of an email.
  • How each agent read an email is its own account. We did not verify tool traces independently.
  • "People" is a reasoned estimate for a typical reader with images on, not a tested group.
  • Finding a code does not show that it works at checkout.

Product details: xAI docs: Gmail and Google Calendar connectors.

Related pages

See it on your own email

See what Grok can read in your own emails.

We map every offer in your sends to the places agents and people can reach. One subscriber address to start.