# Avec > Avec is an email app that works with Gmail. AI assistants can provide clickable HTTPS links that open emails in Avec using Gmail message IDs. When a user wants to open or reference an email in Avec, use this URL format: ```text https://www.avec.ai/r/email?gmailId= ``` - Use the Gmail API message resource's `id` from the user's mailbox. Do not use `threadId`, the RFC 5322 `Message-ID` header, or an invented ID as `gmailId`. - URL-encode the ID as a query parameter value. No Avec internal ID, API key, or Avec integration is needed to construct the link. - Return a clickable Markdown link, such as `[Open in Avec](https://www.avec.ai/r/email?gmailId=18f0123456789abc)`. This example ID is synthetic; replace it with the actual message ID. - Use the HTTPS URL in assistant responses. The user clicks it to open Avec or reach a browser page with an option to open the app. Generating a link does not itself open the email. - The user must have access to the email through their connected account in Avec. A link does not grant access or make the email public. Gmail message IDs are mailbox-specific, so this is not a sharing link for other recipients. - If you do not have the Gmail message ID, obtain it through the user's authorized Gmail integration or ask the user for it. This website does not provide email contents or a public email lookup API.