# C4AI Command

## C4AI Command

The Cloud4.ai system operates on a Commands framework, where each command specifies the behavior of the service in various scenarios. This approach offers a unified interface for all C4AI Services, ensuring alignment across multiple use cases. Every operation on a service is routed through a command, facilitating a comprehensive trace log of the operational process.

Not all commands are accessible via the API due to security and access control measures. The complete list of commands associated with services can be found below or within each respective Service Section.

* [EES Commands](/services/ees-elastic-endpoint/ees-commands.md)
* [AAC Commands](/services/aac-ai-api-connector/aac-commands.md)
* [Prompt Commands](/services/plprompt-prompt/prompt-commands.md)
* [KDB Commands](/services/kdb-knowledgebase/kdb-commands.md)

### Life-cycle&#x20;

The Command entity represents a simple object that answers the questions: who, when, and what was executed. Due to its simplicity, the lifecycle of the Command entity is straightforward and demonstrates successful or failed command execution.

<figure><img src="/files/J9lvOeTGQcShqZyOCPPw" alt="" width="375"><figcaption></figcaption></figure>

### Example

The following structure represents the nested structure of the command.

> ❗️**Note:**  The nested structure of the command can be provided using \_binding property that is specific for the Execution Commands like **C4AI\_EES\_Execute\_Command.** Find more: [Request](/sdk/request.md)

```json
{
  "sic": "sic@0000000001:ees:0000000001",
  "operation": "EXECUTE",
  "command": {
    "sic": "sic@0000000001:aac-instance:0000000001",
    "operation": "EXECUTE",
    "parameters": {
      "system_role": "You're a friendly giraffe!"
    },
    "credentials": {},
    "_bindings": {
      "user_input": {
        "sic": "sic@0000000001:aac-instance:0000000001",
        "operation": "GET_VALUE",
        "parameters": {
          "system_role": "You're a friendly giraffe!",
          "user_role": "You're a friendly giraffe!"
        }
      }
    }
  },
  "schedule": {},
  "options": {
    "priority": "INSTANT"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloud4.ai/concept/c4ai-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
