Reply to Comment
Endpoints
Reply to Comment
Generate a context-aware reply to a comment in Arabic or English.
POST
Reply to Comment
Generate an AI-powered reply that matches the commenter’s language and cultural context. For Arabic comments, replies match the detected dialect (Gulf, Egyptian, Levantine, MSA). For English comments, replies are natural and platform-appropriate. Language is auto-detected unless overridden.Documentation Index
Fetch the complete documentation index at: https://developers.trynawa.com/llms.txt
Use this file to discover all available pages before exploring further.
Cost: $0.008 per request (8 credits). Semantic cache hits are free (
X-NAWA-Cache: HIT).Request
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The comment ID to reply to. |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tone | string | No | Reply tone: friendly, professional, casual, formal. Default: friendly. |
max_length | integer | No | Maximum reply length in characters. Default: 500. |
context | string | No | Additional context about the channel or video to improve reply relevance. |
language | string | No | Force reply language: ar, en, auto. Default: auto (matches commenter’s language). |
Example request
Response
Success response (200)
Result fields
| Field | Type | Description |
|---|---|---|
comment_id | string | The comment that was replied to |
reply_text | string | The generated reply text |
reply_dialect | string | null | Dialect used in the reply (matches original). null for English replies. |
tone | string | The tone used for the reply |
original_intent | string | Detected intent of the original comment |
original_dialect | string | Detected dialect of the original comment |