---
title: "Ai Next Action Route"
method: POST
path: "/api/crm/conversations/{conversation_id}/ai/next-action"
tags: ["CRM"]
---

# Ai Next Action Route

`POST /api/crm/conversations/{conversation_id}/ai/next-action`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/crm/conversations/{conversation_id}/ai/next-action`
- Auth: HTTP bearer

## Path parameters

- `conversation_id` string, required

## Headers

- `x-kolens-user-id` string, nullable
- `x-kolens-workspace-id` string, nullable

## Response `200`

Successful Response

- NextActionResponse
  - `recommendation` string, required
  - `rationale` string, required
  - `tokens_used` integer, required
  - `model` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kolens/apis/kolens-api.md) · [All operations](https://skmtc.dev/kolens/apis/kolens-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolens/apis/kolens-api/revisions/5d6865ab0a24?raw)
