# The advisor's dialogue

`POST /crm/marketing/propose` · Rivier · contacts

The advisor's dialogue: what the person said (and the earlier turns) becomes a proposed plan and the questions still open. Nothing is saved; the person confirms by creating the plan.

- Scope: contacts:write
- Graphql: Mutation.contactsMarketingPropose
- Sdk: contacts.marketing.propose
- Cli: contacts marketing propose

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2000
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "person",
              "advisor"
            ]
          },
          "text": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "required": [
          "role",
          "text"
        ],
        "additionalProperties": false
      },
      "maxItems": 30
    }
  },
  "required": [
    "message"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/crm/marketing/propose' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "message": "string"
}'
```
