---
schema_version: "1"
id: 45458c3ea3b6a4a5c591a3004037ceb7cd761484706ea003db8b965ae64178e6
title: Anypoint Code Builder を使用した Agentforce Connector 1.1 の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/agentforce-connector/1.1/agentforce-connector-config-acb.md
canonical_url: https://docs.mulesoft.com/jp/agentforce-connector/1.1/agentforce-connector-config-acb
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1bcfefa7c6e763ef1e44059c7bd27814909d6b7ecb5e7db804c8dc5c689d99d3
description: MuleSoft Documentation Site
release: "1.1"
latest: true
---
# Anypoint Code Builder を使用した Agentforce Connector 1.1 の設定

Unresolved include directive in modules/ROOT/pages/agentforce-connector-config-acb.adoc - include::connectors::partial$configure-acb-connectors-partial.adoc\[\]

## [](#create-new-integration-project)新しいインテグレーションプロジェクトを作成する

Unresolved include directive in modules/ROOT/pages/agentforce-connector-config-acb.adoc - include::connectors::partial$configure-acb-connectors-partial.adoc\[\]

## [](#add-components-to-project)プロジェクトにコンポーネントを追加する

Unresolved include directive in modules/ROOT/pages/agentforce-connector-config-acb.adoc - include::connectors::partial$configure-acb-connectors-partial.adoc\[\]

## [](#configure-http-trigger)フローのトリガーを設定する

Unresolved include directive in modules/ROOT/pages/agentforce-connector-config-acb.adoc - include::connectors::partial$configure-acb-connectors-partial.adoc\[\]

## [](#add-connector-to-project)インテグレーションプロジェクトにコネクタを追加する

1. \[Explorer\] ビューで、目的のプロジェクトの設定 XML ファイル (​`my-project-name.xml`​ など) を開きます。
2. キャンバス UI が自動的に開かない場合は、アクティビティバーの ​![Show Mule graphical mode (Mule グラフィカルモードを表示)](/mulesoft/current/ja-jp/anypoint-code-builder/_images/icon-tree-view.png)​ (​**Show Mule graphical mode (Mule グラフィカルモードを表示)**​) アイコンをクリックしてキャンバス UI を開きます。
3. キャンバス UI から他のコンポーネントを追加した方法と同じ方法でコネクタを追加します。
    
    1. キャンバス UI で ​!["\[Add component (コンポーネントを追加)](/mulesoft/current/ja-jp/anypoint-code-builder/_images/icon-plus.png) アイコン",15,15\]​ (​**\[Add component (コンポーネントを追加)\]**​) アイコンをクリックします。
    2. **\[Add Component (コンポーネントを追加)\]**​ パネルで ​**\[Connectors (コネクタ)\]**​ をクリックします。
4. !["\[Search in Exchange (Exchange 内を検索)](/mulesoft/current/ja-jp/anypoint-code-builder/_images/icon-search-exchange.png) アイコン",15,15\]​ (​**\[Search in Exchange (Exchange 内を検索)\]**​) 切り替えをクリックします。
    
    !["\[Search in Exchange (Exchange 内を検索)](/mulesoft/current/ja-jp/anypoint-code-builder/_images/int-connector-search-exchange.png) 切り替え"\]
5. 検索ボックスに​`「agentforce」`​と入力します。
6. コネクタを選択してプロジェクトに追加します。

コネクタをインテグレーションプロジェクトに追加しても、Anypoint Code Builder ワークスペースの他のプロジェクトはそのコネクタを使用できません。

## [](#add-global-config)グローバル設定を追加する

1. 設定 XML で、​`<flow/>`​ 要素の前にカーソルを置いて​`「agentforce」`​と入力します。
    
    カーソルが ​`<flow/>`​ 要素の内側にないことを確認します。
2. `ms-agentforce:config`​ スニペットを選択します。
    
    このスニペットでは次のコードが追加されます。
    
    ```xml
    <ms-agentforce:config clientId="#[]" clientSecret="#[]" />
    ```
3. 属性を追加して設定を完了します。次に例を示します。
    
    ```xml
    <ms-agentforce:config name="Agentforce_Config" doc:name="Agentforce Config" doc:id="e3428ee2-d4ee-47dc-ba7e-30073f69165e" >
    		<ms-agentforce:oauth-client-credentials-connection >
    		<ms-agentforce:oauth-client-credentials clientId="clientid" clientSecret="supersecret" />
    		</ms-agentforce:oauth-client-credentials-connection>
    </ms-agentforce:config>
    ```
    
    この例は、2 つのグローバル要素 (​`http:listener-config`​ と ​`ms-agentforce:config`​) が定義されている「Define\_Prompt」という名前のフローを示しています。
    
    ```xml
     <http:listener-config basePath="/path" name="HTTP-Listener-config">
        <http:listener-connection host="0.0.0.0" port="8081">
        </http:listener-connection>
      </http:listener-config>
      <ms-agentforce:config name="Agentforce_Config" doc:name="Agentforce Config" doc:id="e3428ee2-d4ee-47dc-ba7e-30073f69165e" >
    	   <ms-agentforce:oauth-client-credentials-connection >
    		   <ms-agentforce:oauth-client-credentials clientId="clientid" clientSecret="supersecret" />
    	   </ms-agentforce:oauth-client-credentials-connection>
    	</ms-agentforce:config>
      <flow name="Define_Prompt">
    ```

## [](#その他のコネクタ項目の設定)その他のコネクタ項目の設定

コネクタのグローバル要素を設定したら、他の必須項目を設定します。必須項目は、使用するコネクタアクションによって異なります。

Agentforce Connector アクションの設定についての詳細は、[Agentforce Connector 1.1 のエージェント操作の設定](https://docs.mulesoft.com/jp/agentforce-connector/1.1/configuring-agent-operations)を参照してください。

## [](#関連情報)関連情報

- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Agentforce Connector リファレンス](https://docs.mulesoft.com/jp/agentforce-connector/1.1/agentforce-connector-reference)
- [Agentforce Connector 1.1 のエージェント操作の設定](https://docs.mulesoft.com/jp/agentforce-connector/1.1/configuring-agent-operations)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)