View as Markdown
NetHunt CRM icon

NetHunt CRM ACTION

Add Gmail Thread to Record

Links a Gmail thread to a record. See docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's NetHunt CRM account once, then configure and run Add Gmail Thread to Record from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "nethunt_crm-add-gmail-thread-to-record",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nethunt_crm: { authProvisionId: "apn_xxxxxxx" },
    folderId: "Folder",
    recordId: "Record",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Add Gmail Thread to Record inputs
Property Type Description
folderId Folder string
The Folder ID.
Required Dynamic
recordId Record string
The Record ID. This prop will list records up to 1 month ago.
Required Dynamic
gmailThreadId Gmail Thread ID string
The Gmail Thread ID.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
nethunt_crm-add-gmail-thread-to-record
Version
0.0.2
App
NetHunt CRM
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes