json(結果オブジェクト)と text(テキスト入力用に、同じ結果をコンパクトな JSON にしたもの)の 2 つの出力を返します。
利用可能なノード
- List Content Items
- Get Content Item
- Create Content Item
- Update Content Item
- Publish Content Item
List Content Items
Amplience リポジトリからコンテンツアイテムを 1 ページ分一覧表示します。必須の入力
- Amplience Connection
- Content repository
任意の入力
- Page(デフォルトは
0): 返す結果のページ。最初のページは0から始まります - Page Size(デフォルトは
20、最大100): リクエストするアイテムの数
出力
Amplience Response には次の内容が含まれます。items: 各アイテムにはid、label、body、version、Amplience のメタデータが含まれますpage:number、size、total_elements、total_pages
主な概念
Hub
リポジトリを含む Amplience のハブです。詳しくは Amplience のアカウント構造ガイドをご覧ください。Create Content Item ノードと List Content Items ノードでは、Hub ピッカーはリポジトリの参照を補助するためだけのものです。Profound はノードにハブを保存せず、接続にハブが 1 つしかない場合は自動的に選択します。Content repository
コンテンツアイテムが格納されている場所です。ドロップダウンからリポジトリを選択するか、リポジトリ ID を入力するか、変数を使用します。詳しくは Amplience の Managing repositories ガイドをご覧ください。Content Item ID
ID を入力するか、前のノード(Create Content Item や List Content Items など)の出力の変数を使用します。このフィールドにはピッカーがありません。コンテンツタイプとスキーマ
各コンテンツタイプは JSON スキーマの URL で定義されます。詳しくは Amplience の Working with content types ガイドをご覧ください。コンテンツタイプを選択すると、そのフィールドがエディターに読み込まれます。スキーマ URL を手動で入力する場合は、JSON モードを使用してください。Amplience でのスキーマの変更は、Amplience がキャッシュされたスキーマを更新した後にのみ反映されます。Content fields
コンテンツアイテムの JSON 本文です。コンテンツタイプのスキーマのフィールドと_meta で構成されます。Name と Content type は _meta.name と _meta.schema に入力されます。deliveryKey などのその他の _meta キーは変更されません。
構造化モードと JSON モード
構造化モードでは、フィールドが 200 個以下のスキーマについて、シンプルなトップレベルのフィールド(テキスト、数値、ブール値、列挙型のドロップダウン)が表示されます。オブジェクト、配列、参照などの複雑なフィールドには、フィールドごとの JSON エディターが表示されます。フィールドを読み込めない場合や、本文を変数から渡す場合は JSON モードを使用してください。Version
Amplience の楽観的ロックです。Get Content Item ノードからバージョンを取得し、Update Content Item ノードに渡します。その後アイテムが変更された場合は、もう一度取得してください。バージョンについて詳しくは、Amplience の Versioning ガイドをご覧ください。下書きと公開済みコンテンツ
Create Content Item ノードと Update Content Item ノードは下書きを作成します。コンテンツを公開状態にするのは Publish Content Item ノードだけです。詳しくは Amplience の Publishing and scheduling ガイドをご覧ください。コンテンツが LLM や外部入力から生成される場合は、Publish Content Item の前に Human Review ステップを追加してください。失敗した書き込み
Profound は失敗した書き込みを再試行しません。また、失敗した書き込みが実際には完了している場合もあります。書き込みノードを再実行する前に、Amplience を確認してください。読み取りは、一時的なエラーの場合に自動的に再試行されます。ロケール
ノードにはロケールの設定がありません。ローカライズされたフィールドは本文の JSON に含めてください。詳しくは Amplience の Localizing content ガイドをご覧ください。Workflow の例
コンテンツアイテムを作成して公開する:- Prompt LLM ノードでコンテンツを生成します。
- Create Content Item ノードを追加し、Amplience にコンテンツアイテムの下書きを作成します。
- Human Review ステップを追加し、チームメンバーがコンテンツを確認できるようにします。
- Publish Content Item ノードを追加し、アイテムを Amplience に公開します。
publishedがtrueの場合にのみ続行します。
- Get Content Item ノードを追加し、アイテムのフィールドと
versionを取得します。 - Prompt LLM ノードでフィールドを編集します。プロンプトに
/を入力して Get Content Item ノードの結果からbodyを挿入し、行いたい変更を記述します。Content fields は本文全体を置き換えるため、更新後のすべてのフィールドを出力するよう指示してください。 - Update Content Item ノードを追加します。Get Content Item ノードの結果の
versionと、Prompt LLM の出力を JSON モードの Content fields として渡します。 - Human Review ステップを追加し、チームメンバーが更新されたコンテンツを確認できるようにします。
- Publish Content Item ノードを追加し、更新したアイテムを Amplience に公開します。
トラブルシューティング
Amplience ノードの実行時に、次のエラーメッセージが表示される場合があります。各項目に原因と解決策を記載しています。This connection cannot list hubs. Check its permissions in Amplience.
This connection cannot list hubs. Check its permissions in Amplience.
This connection cannot list repositories. Ask your Amplience administrator to allow repository read access.
This connection cannot list repositories. Ask your Amplience administrator to allow repository read access.
Content fields could not be loaded. Check the connection permissions or use JSON.
Content fields could not be loaded. Check the connection permissions or use JSON.
Amplience rejected the content. Check its schema and required fields.
Amplience rejected the content. Check its schema and required fields.
Amplience rejected the update. Check the content body and the version from a recent Get Content Item result.
Amplience rejected the update. Check the content body and the version from a recent Get Content Item result.
version と有効な本文を Update Content Item ノードに渡してください。Amplience reported a content conflict
Amplience reported a content conflict
Supply a label or content fields to update Amplience.
Supply a label or content fields to update Amplience.
Supply Name and Schema URL with the content fields.
Supply Name and Schema URL with the content fields.
Amplience access denied
Amplience access denied
Amplience publication FAILED. Inspect Amplience before taking another action.
Amplience publication FAILED. Inspect Amplience before taking another action.
Publication was accepted but could not be tracked. Inspect Amplience before retrying.
Publication was accepted but could not be tracked. Inspect Amplience before retrying.
Amplience write outcome is unknown. Inspect Amplience before rerunning. or Amplience did not confirm the action. It may have completed; inspect Amplience before retrying.
Amplience write outcome is unknown. Inspect Amplience before rerunning. or Amplience did not confirm the action. It may have completed; inspect Amplience before retrying.
Content Fields must fit within 256 KiB, 32 nesting levels, and 5,000 object keys.
Content Fields must fit within 256 KiB, 32 nesting levels, and 5,000 object keys.
Amplience rate limit reached
Amplience rate limit reached
Set up the Amplience connection before running this node.
Set up the Amplience connection before running this node.