# Freshchat — Pipedream Connect

> Customer Messaging, Live Chat & Chatbots

- API slug: `freshchat` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Help Desk & Support
- Website: https://www.freshworks.com/live-chat-software/
- This page (HTML): https://pipedream.com/apps/freshchat
- Tools: 10 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: freshchat`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "freshchat",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Fetch Conversation Details:
const result = await mcp.callTool({
  name: "freshchat-fetch-conversation-details",
  arguments: {
    userId: "User ID",
    conversationId: "Conversation ID",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
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: "freshchat-fetch-conversation-details",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    freshchat: { authProvisionId: "apn_xxxxxxx" },
    userId: "User ID",
    conversationId: "Conversation ID",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (10)

### `freshchat-fetch-conversation-details` — Fetch Conversation Details (Read-only)

Fetches details for a specific conversation. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/fetch-conversation-details.md

### `freshchat-list-agent-id-options` — List Agent ID Options (Read-only)

Retrieves available options for the Agent ID field.

Full schema: https://pipedream.com/apps/freshchat/actions/list-agent-id-options.md

### `freshchat-list-agents` — List Agents (Read-only)

Lists all agents in Freshchat. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/list-agents.md

### `freshchat-list-all-conversation-properties` — List All Conversation Properties (Read-only)

Retrieves a list of all conversation properties configured in the Freshchat system. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/list-all-conversation-properties.md

### `freshchat-list-channels` — List Channels (Read-only)

Lists all channels in Freshchat. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/list-channels.md

### `freshchat-list-group-id-options` — List Group ID Options (Read-only)

Retrieves available options for the Group ID field.

Full schema: https://pipedream.com/apps/freshchat/actions/list-group-id-options.md

### `freshchat-list-messages` — List Messages (Read-only)

Lists all messages in a conversation. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/list-messages.md

### `freshchat-list-user-id-options` — List User ID Options (Read-only)

Retrieves available options for the User ID field.

Full schema: https://pipedream.com/apps/freshchat/actions/list-user-id-options.md

### `freshchat-send-message-in-chat` — Send Message in Chat (Write)

Sends a message in a specific conversation. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/send-message-in-chat.md

### `freshchat-update-conversation-status` — Update Conversation (Write)

Updates a conversation's status, assignment, or properties. See the documentation

Full schema: https://pipedream.com/apps/freshchat/actions/update-conversation-status.md

## Triggers (2)

### `freshchat-new-conversation-started` — New Conversation Started (Polling)

Emit new event when a new conversation is started for a user. See the documentation

Full schema: https://pipedream.com/apps/freshchat/triggers/new-conversation-started.md

### `freshchat-new-message-received` — New Message Received (Polling)

Emit new event when a new message is received in a conversation. See the documentation

Full schema: https://pipedream.com/apps/freshchat/triggers/new-message-received.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
