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