mapps-tsutsum / sandbox

GitHub 練習用
0 stars 0 forks source link

新規問い合わせ作成 #35

Open mapps-tsutsum opened 2 years ago

mapps-tsutsum commented 2 years ago

新規問い合わせ作成

sequenceDiagram
    Otonari Mobile ->> Otonari API: 問い合わせ送信
    Otonari API ->> freshdesk: チケット作成 API 呼び出し[*1]
    freshdesk -->> Otonari API: 作成されたチケットの情報
    Otonari API ->> freshdesk: ユーザー情報更新 API 呼び出し[*2]
    freshdesk -->> Otonari API: 更新されたユーザーの情報
    Otonari API ->> Otonari Mobile: 問い合わせ受付メッセージ送信

サポートスタッフが問い合わせに返答

sequenceDiagram
    Support Staff ->> freshdesk: チケットに公開メモを追加
    freshdesk ->> Otonari API: Webhook でサポートスタッフ返答 API 呼び出し[*3]
    Otonari API ->> Otonari Mobile: 問い合わせ返答メッセージ送信

ユーザーが問い合わせに返答

sequenceDiagram
    Otonari Mobile ->> Otonari API: 返答メッセージ送信
    Otonari API ->> freshdesk: inquiries.id を条件にチケット検索 API 呼び出し[*4]
    freshdesk -->> Otonari API: 検索結果のチケットの情報
    Otonari API ->> freshdesk: users.open_id を条件にユーザー検索 API 呼び出し[*5]
    freshdesk -->> Otonari API: 検索結果のユーザーの情報
    Otonari API ->> freshdesk: チケット メモ追加 API 呼び出し[*6]

API / Webhook

freshdesk ドキュメント

API: https://developers.freshdesk.com/api/

Webhook: https://support.freshdesk.com/support/solutions/45927

チケット作成 API [*1]

ユーザー情報更新 API [*2]

サポートスタッフ返答 API 呼び出し Webhook[*3]

チケット検索 API [*4]

ユーザー検索 API [*5]