Skip to content

[ENG-312] Quickest Start#64

Merged
tanishq-atm merged 1 commit intomainfrom
tanishq/eng-312-add-copy-and-it-works-code-block-at-top-of-quickstart
Mar 3, 2026
Merged

[ENG-312] Quickest Start#64
tanishq-atm merged 1 commit intomainfrom
tanishq/eng-312-add-copy-and-it-works-code-block-at-top-of-quickstart

Conversation

@tanishq-atm
Copy link
Collaborator

@tanishq-atm tanishq-atm commented Mar 3, 2026

Summary by cubic

Added a “Quickest start” section at the top of the Quickstart page with copy-paste install commands and working Python/TypeScript snippets to send an email fast. Addresses ENG-312 by surfacing the shortest path and linking to the Console for the API key.

  • New Features

    • Pip/npm install commands and ready-to-run Python/TypeScript examples with API key guidance.
  • Bug Fixes

    • Corrected the Python send example to use inbox.inbox_id and proper parameters.

Written for commit 477d136. Summary will update on new commits.

@tanishq-atm tanishq-atm requested a review from adi-singh13 March 3, 2026 07:05
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

@tanishq-atm tanishq-atm merged commit 25e20f2 into main Mar 3, 2026
4 checks passed
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="fern/pages/get-started/quickstart.mdx">

<violation number="1" location="fern/pages/get-started/quickstart.mdx:35">
P2: Wrap the quickstart TypeScript async calls in an async function (or async IIFE) so the snippet runs in typical setups without requiring top-level-await module configuration.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

import { AgentMailClient } from "agentmail";

const client = new AgentMailClient({ apiKey: "am_..." });
const inbox = await client.inboxes.create();
Copy link

@cubic-dev-ai cubic-dev-ai bot Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Wrap the quickstart TypeScript async calls in an async function (or async IIFE) so the snippet runs in typical setups without requiring top-level-await module configuration.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At fern/pages/get-started/quickstart.mdx, line 35:

<comment>Wrap the quickstart TypeScript async calls in an async function (or async IIFE) so the snippet runs in typical setups without requiring top-level-await module configuration.</comment>

<file context>
@@ -5,6 +5,38 @@ slug: quickstart
+  import { AgentMailClient } from "agentmail";
+
+  const client = new AgentMailClient({ apiKey: "am_..." });
+  const inbox = await client.inboxes.create();
+  await client.inboxes.messages.send(inbox.inboxId, { to: "user@example.com", subject: "Hello", text: "Hello from my agent!" });
+  ```
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant