---
title: "Explain the best way to say or do something in a specific situation or context with a foreign language. Use this endpoint when the user asks more general or high-level questions."
method: POST
path: "/v1/public/openai/explain-task"
---

# Explain the best way to say or do something in a specific situation or context with a foreign language. Use this endpoint when the user asks more general or high-level questions.

`POST /v1/public/openai/explain-task`

## Request body

- ExplainTaskRequest
  - `task_description` string, required — Description of the task that the user wants to accomplish or do. For example, "tell the waiter they messed up my order" or "compliment someone on their shirt"
  - `learning_language` string, required — The foreign language that the user is learning and asking about. The value can be inferred from question - for example, if the user asks "how do i ask a girl out in mexico city", the value should be "Spanish" because of Mexico City. Always use the full name of the language (e.g. Spanish, French).
  - `native_language` string, required — The user's native language. Infer this value from the language the user asked their question in. Always use the full name of the language (e.g. Spanish, French).
  - `additional_context` string, required — A description of any additional context in the user's question that could affect the explanation - e.g. setting, scenario, situation, tone, speaking style and formality, usage notes, or any other qualifiers.
  - `full_query` string, required — Full text of the user's question.

## Response `200`

OK

- ExplainTaskResponse
  - `explanation` string — An explanation of the best thing to say in the foreign language to accomplish the task described in the user's question.

---

[API](https://skmtc.dev/camel-ai/apis/speak.md) · [All operations](https://skmtc.dev/camel-ai/apis/speak/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/camel-ai/speak/revisions/ae633ff84e2d/schema)
