---
sidebar_position: 7
description: Get system message and other functions to work with OpenAI in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, OpenAI]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get system message
Gets the structure of a system message for use in a request
`Function GetSystemMessage(Val Text) ExportReturn GetMessageStructure("system", Text);EndFunction`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Text | --text | String | ✔ | Message text |
Returns: Structure Of KeyAndValue - Fields structure
:::tip
Is a shorthand for the function `GetMessageStructure`
:::
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_OpenAI.GetSystemMessage("What is 1C:Enterprise?");
```
```bash
oint openai GetSystemMessage \
--text "What is 1C:Enterprise?"
```
```batch
oint openai GetSystemMessage ^
--text "What is 1C:Enterprise?"
```
```json title="Result"
"{\r\n \"role\": \"system\",\r\n \"content\": \"What is 1C:Enterprise?\"\r\n}"
```