How does Gmail AI search work in InSearch?
An admin connects each mailbox once, InSearch reads the last 90 days of mail, and from then on the owner of that mailbox can ask a question and get a written answer that cites the emails it used.
The connection works through a Google Workspace service account. The admin grants it domain-wide delegation for the gmail.readonly scope in the Google Admin console, the way Google describes in its help page on controlling API access with domain-wide delegation. In the InSearch console the admin pastes the service account key and the mailbox address. The address has to belong to a seat in the workspace, otherwise the connection is refused.
InSearch then reads the subject, sender, date and body of each message from the last 90 days, skipping chats, spam and trash. HTML mail is turned into plain text. A message does not change after it is sent, so after the first read InSearch does not fetch it again.
When the owner asks a question, the answer can draw on that mailbox together with every other source the workspace has connected, such as Drive, Slack, Notion, Confluence or Jira. Each sentence points to the source it came from.