> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/sdks/ai/chat/start-end-user-chat-turn.md).

# Start End User Chat Turn

Sends a message to the AI chat; the answer streams on the caller's channel.

The AI module manages your project's LLM and MCP integrations — connecting language-model providers and Model Context Protocol servers so agents can work with your backend. Starts the end user chat turn.

This method is on the runtime **API** surface (`norbix.api.ai`) — call it from your app.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/codemash/sdks/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.api.ai.startEndUserChatTurn({
  message: 'example-value',
  assistantId: 'assistant_4kX9mQvR2tYw7ZbC1dFgHj',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Api;

using var client = new NorbixClient();

var result = await client.Ai.StartEndUserChatTurnAsync(new StartEndUserChatTurnRequest
{
    Message = "example-value",
    AssistantId = "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixApi

norbix = NorbixApi()

result = norbix.ai.start_end_user_chat_turn(
    message="example-value",
    assistantId="assistant_4kX9mQvR2tYw7ZbC1dFgHj",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.API.Ai.StartEndUserChatTurn(ctx, map[string]any{
	"message": "example-value",
	"assistantId": "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_api.dart';

final api = NorbixApi();

final result = await api.aiIntegrations.startEndUserChatTurn(body: {
  'message': 'example-value',
  'assistantId': 'assistant_4kX9mQvR2tYw7ZbC1dFgHj',
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixApi

let client = try NorbixApiClient()

let result = try await client.ai.startEndUserChatTurn([
    "message": "example-value",
    "assistantId": "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import ai.norbix.sdk.api.NorbixApi

val api = NorbixApi()

val result = api.ai.startEndUserChatTurn(mapOf(
    "message" to "example-value",
    "assistantId" to "assistant_4kX9mQvR2tYw7ZbC1dFgHj",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix api ai end user chat turn start --message example-value --assistantId assistant_4kX9mQvR2tYw7ZbC1dFgHj
```

{% endtab %}
{% endtabs %}

## In Cloud

Manage this visually in Cloud — see [AI Integrations → Chat](/codemash/ai/products.md).

## API reference

Full request and response for this endpoint: [Start End User Chat Turn](/codemash/api-reference/ai/chat/start-end-user-chat-turn.md).
