# メッセージリンクの解説

<a href="https://pxa.impact.com/student/activity/2359755?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=&#x26;utm_campaign=help-center" class="button primary">PXA コースを受講する</a>

メッセージリンクを使用すると、カスタマーアドボケイトが事前に整形されたメッセージをさまざまなソーシャルメディアプラットフォームで共有できます。各メッセージには事前作成されたコピーが含まれ、アドボケイト固有の共有リンクを含めることもできます。メッセージリンクは以下に含めることができます。

* プログラムウィジェット
* トランザクションメール
* 埋め込みリンクまたはボタンとして、アプリまたはウェブサイト
* 外部メールキャンペーン

<details>

<summary>メッセージリンクのコンテンツを調整する</summary>

1. 左側のナビゲーションメニューで、以下を選択します ![](/files/7ddd72d8e69e7055d9408cf4847c5c54abf9f71d) **\[Engage] → Program Rules**.
2. 次の *Program Rules* 画面で、次のものを選択します **Sharing** タブ。
3. 次を使用している場合 *ホスト型の* Open Graph ソースの場合は、次を更新します **タイトル**, **説明**、および **画像** 。これらはエンドユーザーに表示されます。
4. 次の *Additional share mediums* セクションで、メッセージを設定したい関連する共有メディアをすべて選択し、 *Share Body* セクションにメッセージを入力します。

   <div data-with-frame="true"><figure><img src="/files/ab4dea7797cd18ae99379ae02a13d0827cb2eea7" alt="" width="563"><figcaption></figcaption></figure></div>
5. 次を選択します **Save Share Messaging** してコンテンツを保存します。

これで、メッセージリンクを紹介プログラムのウィジェットやトランザクションメールに含めたり、ウェブサイト、アプリ、またはメールキャンペーン内の別の場所に埋め込んだりできるようになります。

</details>

<details>

<summary>プログラムのタッチポイントにメッセージリンクを追加する</summary>

コンテンツエディターを使用すると、 [プログラムウィジェット](/brand/ja/nitsuitebitaidesuka/advocate-program/manage-advocate-participant-experiences/widget-experiences/customize-program-widgets.md) および [トランザクションメール](/brand/ja/nitsuitebitaidesuka/advocate-program/manage-advocate-participant-experiences/email-experiences/create-and-customize-advocate-program-emails.md) に、最小限の追加設定でメッセージリンクを追加できます。必要なのはプログラム ID のみです。他の場所にメッセージリンクを挿入するには、以下の形式に従うリンクを埋め込むことができます。

```programlisting
https://app.referralsaasquatch.com/a/ 
{tenant_alias}/message/redirect/{share_medium}
?engagementMedium={engagement_medium}&accountId= 
{accountId}&userId={userId}&programId=
{program_ID}&rsLandingPage= {rsLandingPage}
```

中かっこ内に含まれる情報 **{ }** は、サポートされているパラメータ値のいずれかに置き換える必要があります。

{% hint style="info" %}
**注:** 次の `accountId` および `userId` 値は、プログラムデータから動的に入力する必要があります。データの取得についてサポートが必要な場合は、開発チームに相談してください。
{% endhint %}

| パラメータ                | 例                                    | 説明                                                                                                                                                                                                                                                                                                                             |
| -------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `tenant_alias`       | `test_bpinhag9gag`                   | <p>プログラムの tenant alias です。tenant alias を確認するには:</p><p>1. 上部のナビゲーションバーから、次を選択します <img src="/files/2c38195ecc23a36266a65082c4bfc52f44a43503" alt=""> <strong>\[User profile] → Settings</strong>.</p><p>2. 左側の <em>Advocate Settings</em>の下で、次を選択します <strong>General</strong>.</p>                                               |
| `share_medium`       | `WHATSAPP`                           | <p>アドボケイトがこの紹介を共有するメディアです。</p><p>サポートされている値:</p><p>• <code>EMAIL</code></p><p>• <code>FACEBOOK</code></p><p>• <code>FBMESSENGER</code></p><p>• <code>LINEMESSENGER</code></p><p>• <code>LINKEDIN</code></p><p>• <code>PINTEREST</code></p><p>• <code>SMS</code></p><p>• <code>TWITTER</code></p><p>• <code>WHATSAPP</code></p> |
| `engagement_medium`  | `EMBED`                              | <p>アドボケイトが紹介プログラムに関与するメディアです（例: 埋め込みウィジェット）。</p><p>サポートされている値:</p><p>• <code>EMAIL</code></p><p>• <code>EMBED</code></p><p>• <code>MOBILE</code></p><p>• <code>POPUP</code></p>                                                                                                                                                |
| `accountId`          | \[メールアドレスに基づくハッシュ化 ID]               | このメッセージリンクの作成対象となるアカウントの account ID です。ほとんどの参加者では、user ID と account ID フィールドは同じ値です。                                                                                                                                                                                                                                            |
| `userId`             | \[メールアドレスに基づくハッシュ化 ID]               | このメッセージリンクの作成対象となるユーザーの user ID です。ほとんどの参加者では、user ID と account ID フィールドは同じ値です。                                                                                                                                                                                                                                                |
| `programId`          | `21789`                              | プログラム ID です。これは **Program Rules** ページのプログラム名の下にあります。                                                                                                                                                                                                                                                                           |
| `rsLandingPage` （任意） | `https://example.com/driver-program` | <p>生成される共有リンクのリダイレクト先を別の URL にするために、プログラムのランディングページを上書きします。</p><p>サポートされているのは、プログラムのランディングページ URL 上の異なるパスのみです。セキュリティ上の理由から、別のドメインへリダイレクトすることはできません。</p>                                                                                                                                                                        |

{% hint style="info" %}
**例:** 上記の形式を使用すると、以下は user ID と account ID が `messageLink` である参加者について、impact.com のデモプログラム内でメッセージリンク URL がどのようになるかの例です。 `klip-referral-program`。このリンクはメールで提供され、参加者がモバイルリンク経由で共有するために使用されます。

```programlisting
https://app.referralsaasquatch.com/a/test_aut32av0b11uc
/message/redirect/EMAIL?engagementMedium=
MOBILE&accountId=messageLink&userId=
messageLink&programId=klip-referral-program
```

{% endhint %}

</details>


---

# Agent Instructions: 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:

```
GET https://help.impact.com/brand/ja/nitsuitebitaidesuka/advocate-program/manage-advocate-participant-experiences/message-links-explained.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
