> For the complete documentation index, see [llms.txt](https://help.windmillsoft.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.windmillsoft.kr/en/simplychat/installation-and-basic-setup-guide/salesforce-settings/omni-channel/flows.md).

# Flows

* ![](/files/6mZ7dieUAXqYfDAYMT9E) > \[Setup] >Quick Find > \[Flows] > \[New Flow] > \[Record-Triggered Flow] > \[Create] > Enter the same as the startup configuration screen below > \[Done]

<figure><img src="/files/5mwdGTDEI0Kyd55WxpTN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1dlX1X0gnchFVOdzqOQg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/kx5G3rUNOUlmPa7Gntxc" alt=""><figcaption><p>Start Configuration Screen</p></figcaption></figure>

* Create all elements in the following order > \[Save] > \[Activate]
  * You can add elements using the plus(+) buttons.
  * Items that are not specified will use the default value set.
  * Save the flow with the name 'SC\_talkSessionstatus update when owner changed via omni channel'.

<figure><img src="/files/ONI9qRvSCQRPwqW3kgux" alt=""><figcaption></figcaption></figure>

| Element                                   | Decision                     |
| ----------------------------------------- | ---------------------------- |
| Label                                     | Agent Work Status            |
| Outcome Details                           |                              |
| Label                                     | Status is assigned           |
| Condition Requirements to Execute Outcome | All Conditions Are Met (AND) |
| Resource                                  | {!$Record.Status}            |
| Operator                                  | Equals                       |
| Value                                     | Opened                       |

| Element                | Get Records                  |
| ---------------------- | ---------------------------- |
| Label                  | Get TalkSession              |
| Object                 | Chat Session                 |
| Condition Requirements | All Conditions Are Met (AND) |
| Field                  | Id                           |
| Operator               | Equals                       |
| Value                  | {!$Record.WorkItemId}        |

| Element                                   | Decision                     |
| ----------------------------------------- | ---------------------------- |
| Label                                     | Is TalkSession Null          |
| Outcome Details                           |                              |
| Label                                     | TalkSession is Not null      |
| Condition Requirements to Execute Outcome | All Conditions Are Met (AND) |
| Resource                                  | {!Get\_TalkSession\_Record}  |
| Operator                                  | Is Null                      |
| Value                                     | {!$GlobalConstant.False}     |

| Element  | Assignment                                      |
| -------- | ----------------------------------------------- |
| Label    | Set TalkSession                                 |
| Variable | {!Get\_TalkSession\_Record.WINP\_\_Status\_\_c} |
| Operator | Equals                                          |
| Value    | Chatting                                        |
| Variable | {!Get\_TalkSession\_Record.OwnerId}             |
| Operator | Equals                                          |
| Value    | {!$User.Id}                                     |

| Element                                            | Update Records                                                      |
| -------------------------------------------------- | ------------------------------------------------------------------- |
| Label                                              | Update TalkSession                                                  |
| How to Find Records to Update and Set Their Values | Use the IDs and all field values from a record or record collection |
| Condition Requirements                             | All Conditions Are Met (AND)                                        |
| Record or Record Collection                        | {!Get\_TalkSession\_Record}                                         |

| Element                | Get Records                                                |
| ---------------------- | ---------------------------------------------------------- |
| Label                  | Get TalkCustomer                                           |
| Object                 | Chat Customer                                              |
| Condition Requirements | All Conditions Are Met (AND)                               |
| Field                  | Id                                                         |
| Operator               | Equals                                                     |
| Value                  | {!Get\_TalkSession\_Record.WINP\_\_Talk\_Customer\_\_r.Id} |

| Element  | Assignment                            |
| -------- | ------------------------------------- |
| Label    | Set AgentId                           |
| Variable | {!GetTalkCustomer.WINP\_\_Agent\_\_c} |
| Operator | Equals                                |
| Value    | {!$User.Id}                           |

| Element                                            | Update Records                                                      |
| -------------------------------------------------- | ------------------------------------------------------------------- |
| Label                                              | Update TalkCustomer                                                 |
| How to Find Records to Update and Set Their Values | Use the IDs and all field values from a record or record collection |
| Condition Requirements                             | All Conditions Are Met (AND)                                        |
| Record or Record Collection                        | {!GetTalkCustomer}                                                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.windmillsoft.kr/en/simplychat/installation-and-basic-setup-guide/salesforce-settings/omni-channel/flows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
