# Hamsa — Pipedream Connect

> AI Models That Master Arabic Dialects

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Create AI Content:
const result = await mcp.callTool({
  name: "hamsa-create-content",
  arguments: {
    jobId: "Job Id",
    aiParts: ["AI Parts"],
  },
})
```

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: "hamsa-create-content",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    hamsa: { authProvisionId: "apn_xxxxxxx" },
    jobId: "Job Id",
    aiParts: ["AI Parts"],
  },
})
```

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

## Actions (6)

### `hamsa-create-content` — Create AI Content (Write)

Transform transcribed content into various formats for content marketing. See the documentation

Full schema: https://pipedream.com/apps/hamsa/actions/create-content.md

### `hamsa-list-job-id-options` — List Job Id Options (Read-only)

Retrieves available options for the Job Id field.

Full schema: https://pipedream.com/apps/hamsa/actions/list-job-id-options.md

### `hamsa-list-jobs` — List Jobs (Read-only)

Fetch the list of jobs from Hamsa. See the documentation

Full schema: https://pipedream.com/apps/hamsa/actions/list-jobs.md

### `hamsa-list-voice-id-options` — List Voice ID Options (Read-only)

Retrieves available options for the Voice ID field.

Full schema: https://pipedream.com/apps/hamsa/actions/list-voice-id-options.md

### `hamsa-synthesize-voice` — Synthesize Voice (Read-only)

Converts text input into artificial speech using Hamsa. See the documentation

Full schema: https://pipedream.com/apps/hamsa/actions/synthesize-voice.md

### `hamsa-transcribe-video` — Transcribe Video (Write)

Automatically transcribe Arabic videos from YouTube URLs or direct links. See the documentation

Full schema: https://pipedream.com/apps/hamsa/actions/transcribe-video.md

---

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