> For the complete documentation index, see [llms.txt](https://docs.cloud4.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloud4.ai/concept/c4ai-command.md).

# 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"
  }
}
```
