# Ask for help with a record's call script

What to say next: send what the prospect `said`, and the lead's own script answers with the branch that matches — the line to say, its trigger, its tag and where it goes next. It never writes, and it reads THIS workspace's script, so a workspace that wrote its own objection branches gets its own lines back. Always 200 when the body is well formed: 'nothing in this script covers that' is an answer, carried as `matched: false`. No model is asked. Leads page only.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/rows/{rowId}/script/assist`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "said": "string"
  },
  "params": {
    ":key": "string",
    ":rowId": ""
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "ai_status": "string",
    "branch_id": "",
    "matched": true,
    "next": "string",
    "note": "string",
    "suggestion": "string",
    "tag": "string",
    "trigger": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
