> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/solution-editor/about.md).

# ソリューションエディタとは

## **概要**

このページでは、連携ソリューションを構築する際に使用する「ソリューションエディター」について説明します。

<figure><img src="https://files.readme.io/7eac669-6139b0f-solution_editor.png" alt="3152"><figcaption><p>ソリューションエディター</p></figcaption></figure>

ソリューションエディターは以下の要素から構成されます。

* トリガー
* ステップ
* 変数

***

## **1. トリガー**

<figure><img src="https://files.readme.io/2c54696-image.png" alt=""><figcaption></figcaption></figure>

トリガーは、ソリューションを実行するためにどのアプリのイベントを起点に実行するかを決定する、ソリューション起動のきっかけになるものです。

トリガーイベントは、アプリ（Salesforce や kintone など）で特定のイベント（例: 新規コンタクトの作成や既存のレコードの更新）が発生した際に起動させることができます。

Anyflowはトリガーイベントをリアルタイムで受信したり、アプリをポーリングして定期的にイベントの発生をチェックしたりすることができます。

### **トリガーの種類**

<figure><img src="https://files.readme.io/f02bf9f-image.png" alt="kintoneの例"><figcaption><p>kintoneの例</p></figcaption></figure>

[ポーリングトリガー](/solution-editor/triggers/incoming/polling-triggers.md) は、Anyflowがアプリの状態を定期的に確認し、トリガーイベントの発生をチェックする方法です。

[リアルタイムトリガー](/solution-editor/triggers/incoming/realtime-triggers.md) は、アプリからAnyflowにトリガーイベントの発生を送信する方法です。

### **トリガー条件**

どのようなトリガーイベントを選択して処理するか、追加のルールを設定することができます。

[トリガー条件](/solution-editor/triggers/triggers-conditions.md)

***

## **2. ステップ**

ステップは、アクション、if、繰り返しなどから構成されます。

<figure><img src="https://files.readme.io/7df92be-image.png" alt=""><figcaption></figcaption></figure>

### **ステップの種類**

[アクションステップ](/solution-editor/actions.md)は、アプリの操作（例: 作成、更新、検索など）を実行するものです。

[ifステップ](/solution-editor/logic/if.md)は、指定された条件が満たされた場合に、ステップを実行することができます。

[繰り返しステップ](/solution-editor/logic/loop.md)は、リスト（複数のレコード等）に対して、リストの個数分だけステップを繰り返すものです。

[エラー監視ステップ](/solution-editor/logic/error-monitoring.md)を使うと、「エラー監視」のステップでエラーが発生した場合、「エラーならば」ステップの処理に遷移します。

[停止ステップ](/solution-editor/logic/stop.md)を使うと、任意のステップで処理の実行を停止することができます。

### **ステップの操作について**

<figure><img src="https://files.readme.io/9e9c732-image.png" alt="" width="563"><figcaption></figcaption></figure>

以下の操作が可能です。

* **ドラッグアンドドロップ**：ステップの順番を変更することができます

  <figure><img src="https://files.readme.io/5887e26-image.png" alt=""><figcaption></figcaption></figure>
* **コメント**：ステップにコメントを記述することができます

  <figure><img src="https://files.readme.io/3492ace-image.png" alt=""><figcaption></figcaption></figure>
* **コピー**：ステップをコピーすることができます

  <figure><img src="https://files.readme.io/acf7e19-image.png" alt=""><figcaption></figcaption></figure>
* **ペースト**：コピーしたステップを貼り付けることができます。ソリューションをまたいだペーストも可能です。

  <figure><img src="https://files.readme.io/bb4c956-image.png" alt=""><figcaption></figcaption></figure>
* **削除**：ステップを削除できます

  <figure><img src="https://files.readme.io/94faf28-image.png" alt=""><figcaption></figcaption></figure>

## **3. 変数と変数ウィンドウ**

変数は、トリガーやアクションなどのステップから出力されるデータのことです。

出力されたデータは変数ウィンドウから参照でき、別のステップで利用することができます。

<figure><img src="https://files.readme.io/d7ee8c0-variable-mapping.png" alt="1296"><figcaption><p>変数の<code>チャンネル名</code> を アクションの <code>投稿するチャンネル</code> に割り当てている例</p></figcaption></figure>

変数と変数ウィンドウの詳細は以下のページを確認してください。

[変数ウィンドウ](/solution-editor/variables.md)

## **4. Formula**

入力フィールドで高度な入力やデータの加工などを行うには、Formulaモードを利用します。

FormulaはPythonによって記述することができます。\
Formulaを使うためには、Formulaモードにする必要があります。

<figure><img src="https://files.readme.io/76c34c6-Formula1.gif" alt="760"><figcaption><p>Formulaモードは<code>fx</code>マークで表示されます</p></figcaption></figure>

Formulaの詳細は以下のページを確認してください。

[Formula](/solution-editor/common-specs/formula.md)


---

# 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://docs-embed.anyflow.jp/solution-editor/about.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.
