# Hana — Pipedream Connect

> Unlock Effortless Team Productivity with Hana

- API slug: `hana` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://www.hanabot.ai
- This page (HTML): https://pipedream.com/apps/hana
- Tools: 7 actions · 3 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: hana`

```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": "hana",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Google Chat Message:
const result = await mcp.callTool({
  name: "hana-create-google-chat-message",
  arguments: {
    spaceName: "Space Name",
    message: "Message",
  },
})
```

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: "hana-create-google-chat-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    hana: { authProvisionId: "apn_xxxxxxx" },
    spaceName: "Space Name",
    message: "Message",
  },
})
```

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

## Actions (7)

### `hana-create-google-chat-message` — Create Google Chat Message (Write)

Create a Google Chat message. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/create-google-chat-message.md

### `hana-create-report-group-message` — Create Report Group Message (Write)

Create a report group message. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/create-report-group-message.md

### `hana-generate-completion` — Generate Completion (Write)

Generate a completion using the Hana API. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/generate-completion.md

### `hana-get-chat-completion-status` — Get Chat Completion Status (Read-only)

Get the status of a chat completion. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/get-chat-completion-status.md

### `hana-search-report-group-messages` — Search Report Group Messages (Read-only)

Search for report group messages. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/search-report-group-messages.md

### `hana-search-report-groups` — Search Report Groups (Read-only)

Search for report groups. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/search-report-groups.md

### `hana-search-spaces` — Search Spaces (Read-only)

Get the Google Chat spaces Hana is integrated in. See the documentation

Full schema: https://pipedream.com/apps/hana/actions/search-spaces.md

## Triggers (3)

### `hana-new-report-group` — New Report Group (Polling)

Emit new event when a new report group is created. See the documentation

Full schema: https://pipedream.com/apps/hana/triggers/new-report-group.md

### `hana-new-report-group-message` — New Report Group Message (Polling)

Emit new event when a new message is added to a report group. See the documentation

Full schema: https://pipedream.com/apps/hana/triggers/new-report-group-message.md

### `hana-new-space-added` — New Space Added (Polling)

Emit new event when a new space is added. See the documentation

Full schema: https://pipedream.com/apps/hana/triggers/new-space-added.md

---

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