Skip to main content

Overview

The Instantly.ai Outbound Engine connects Agent Lab to your Instantly.ai workspace for cold email outreach. The integration talks to the Instantly v2 REST API and provides:
  • Connection verification to confirm your API key authenticates correctly.
  • Campaign listing to query the campaigns in your Instantly workspace.
  • A webhook receiver that ingests Instantly engagement events and classifies positive replies as hot leads.
Use this integration when you run cold outbound campaigns in Instantly and want Agent Lab to surface interested leads automatically instead of monitoring replies by hand.
The integration operates under trial governance. It is flagged as a trial integration in the operational register so that no unbudgeted costs accrue when the Instantly trial concludes.

Configuration

Authentication uses a single environment variable. Every Instantly endpoint reads it at request time:
Generate the key in your Instantly workspace under Settings > Integrations > API keys. If the variable is unset, Instantly endpoints fail with the error INSTANTLY_API_KEY is not configured in environment.

Verify the connection

Checks connectivity and authentication against the Instantly v2 API by requesting a single campaign. Call this endpoint after setting INSTANTLY_API_KEY to confirm the integration is live. Returns HTTP 200 on success:
Returns HTTP 400 with success: false when Instantly rejects the request (for example, an invalid API key). The message field includes the upstream status code and error text. Returns HTTP 500 if the request itself fails.

List campaigns

Retrieves campaigns from your Instantly workspace.

Query parameters

Example

Returns HTTP 200:
Campaign objects are returned as provided by the Instantly v2 API. Returns HTTP 500 with an error message if the Instantly request fails.

Webhook receiver

Receives engagement events from Instantly. Configure this URL as a webhook destination in your Instantly workspace so campaign activity flows into Agent Lab as it happens.

Event payload

Hot-lead classification

The receiver classifies each event and returns the action it took:
  • lead_interested events are always flagged as hot leads.
  • reply_received events are flagged as hot leads when the reply text contains buying-intent keywords such as “interested”, “schedule”, “call”, “demo”, or “pricing”.
  • All other events are logged as activity without triggering alerts.

Example

Returns HTTP 200:
For non-hot events, processed.actionTaken is logged_activity and isHotLead is false. Returns HTTP 400 when lead_email is missing and HTTP 500 on processing errors.