# Workflow Application: OPENAIADDMESSAGE usage

**URL:** <https://discuss.workflowgen.com/t/workflow-application-openaiaddmessage-usage/2260>\
**Category:** Workflow Applications\
**Created:** [December 4, 2024, 8:34pm UTC](https://discuss.workflowgen.com/t/workflow-application-openaiaddmessage-usage/2260 "2024-12-04T20:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [December 4, 2024, 8:34pm UTC](https://discuss.workflowgen.com/t/workflow-application-openaiaddmessage-usage/2260/1 "2024-12-04T20:34:10Z")

</div>

The **OPENAIADDMESSAGE** workflow application allows you to update the message history of a conversation to add user or tool interactions. It’s also possible to update the history directly from a sub-process.

## Required parameters

| Parameter | Type | Direction | Description |
| --- | --- | --- | --- |
| `CONTENT` | TEXT | IN | Content of the message to add |
| `ROLE` | TEXT | IN | Role to associate with the message; possible values ​​are `user`, `system`, `assistant`, `tool`, or `developer` |

## Optional parameters

| Parameter | Type | Direction | Description |
| --- | --- | --- | --- |
| `MESSAGE_HISTORY` | TEXT | INOUT | Message history to be updated |
| `TOOL_CALL_ID` | TEXT | IN | If `ROLE ` is `tool` , this is the tool identifier |
| `ASSISTANT_TOOL_CALL` | TEXT | IN | If `ROLE` is `assistant` and you want to add a list of tools to call, this is the list of tools |
| `REQUEST_ID` | NUMERIC | IN | If the history is updated from another process, this is the number of the request to update |
| `REQUEST_DATA_NAME` | TEXT | IN | If the history is updated from another process, this is the name of the data to be updated |
