Reply classification
Every inbound reply is analyzed and assigned one of the following classifications:
Classifications let your automation branch immediately — for example, routing
interested replies to a human SDR queue, suppressing unsubscribe leads from future campaigns, and ignoring out_of_office replies without clogging your pipeline.
Pulling replies
UseGET /v1/replies to list classified replies across all campaigns, or filter to a specific campaign with the optional campaignId query parameter:
threadSnippet field gives you enough context to act on the reply without fetching the full thread. Use the email field to look up the lead record and classification to route the reply to the right handler in your workflow.
Using replies in agent workflows
Replies are the signal that closes the outbound loop. PullGET /v1/replies on a schedule or trigger downstream logic from the reply.received webhook (see below), then branch your agent’s behavior on classification:
- Pass
interestedreplies to a Deepline agent or Claude Code workflow that drafts a personalized follow-up or books a meeting. - Feed
not_interestedandunsubscribeclassifications into a suppression list so those leads are excluded from future campaigns. - Ignore
out_of_officereplies or log them and retry the lead after a configurable delay.
email, campaignId, and threadSnippet, your agent has all the context it needs to take action without additional API calls in the common case.
Webhook alternative
Instead of pollingGET /v1/replies, you can subscribe to the reply.received webhook event. Leadterra will POST the reply payload to your endpoint the moment a new reply is classified, giving you a real-time push model with no polling overhead.
The webhook payload mirrors the reply object returned by GET /v1/replies, so your handler code can be the same regardless of whether you use polling or push.