# Add Feedback — Flash (by Velora AI)

> Adds customer feedback.

- Key: `flash_by_velora_ai-add-feedback`
- Type: Action (Write)
- Version: 0.0.2
- App: Flash (by Velora AI) (`flash_by_velora_ai`) — https://pipedream.com/apps/flash-by-velora-ai.md
- This page (HTML): https://pipedream.com/apps/flash-by-velora-ai/actions/add-feedback
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/flash_by_velora_ai/actions/add-feedback/add-feedback.mjs

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `feedback` | `string` | Yes | Actual text customer feedback. |
| `title` | `string` | No | Title of the customer feedback, if any. |
| `source` | `string` | No | Source where the feedback was received, for example, GitHub, Slack, etc. |
| `upvote` | `integer` | No | Count of upvotes for the feedback. |
| `downvote` | `integer` | No | Count of downvotes for the feedback. |
| `contactName` | `string` | No | Name of the customer contact who provided the feedback. |
| `contactEmail` | `string` | No | Email of the customer contact who provided the feedback. |
| `handle` | `string` | No | Platform specific customer contact handle. Eg. @pipedream. |
| `handleType` | `string` | No | Platform which the contact handle belongs to. Eg. Twitter, GitHub, etc. |
| `companyName` | `string` | No | Name of customer company to which the customer contact who provided feedback belongs. |
| `companyDomain` | `string` | No | Email domain of customer company to which the customer contact who provided feedback belongs. Eg. pipedream.com. |
| `feedbackAt` | `string` | No | Date and time, when the feedback was received. Eg. 2021-01-01T00:00:00. |

## Run it

**MCP**

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

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "flash_by_velora_ai-add-feedback",
  arguments: {
    feedback: "Feedback",
    title: "Title",
  },
})
```

**TypeScript**

```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: "flash_by_velora_ai-add-feedback",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    flash_by_velora_ai: { authProvisionId: "apn_xxxxxxx" },
    feedback: "Feedback",
    title: "Title",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "flash_by_velora_ai-add-feedback",
    "configured_props": {
      "flash_by_velora_ai": { "authProvisionId": "apn_xxxxxxx" },
      "feedback": "Feedback",
      "title": "Title"
    }
  }'
```

---

- App: https://pipedream.com/apps/flash-by-velora-ai.md · All apps: https://pipedream.com/apps
