Open mapps-tsutsum opened 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: https://developers.freshdesk.com/api/
Webhook: https://support.freshdesk.com/support/solutions/45927
[issue:{inquiries.id}] {本文の先頭から10文字}
Otonari App
inquiries.id
新規問い合わせ作成
サポートスタッフが問い合わせに返答
ユーザーが問い合わせに返答
API / Webhook
freshdesk ドキュメント
API: https://developers.freshdesk.com/api/
Webhook: https://support.freshdesk.com/support/solutions/45927
チケット作成 API [*1]
[issue:{inquiries.id}] {本文の先頭から10文字}
Otonari App
)ユーザー情報更新 API [*2]
サポートスタッフ返答 API 呼び出し Webhook[*3]
チケット検索 API [*4]
inquiries.id
は返答メッセージの channel_id で inquiries.channel_id を検索すれば取得できる(レコードがあればそれは問い合わせへの返答、と判断できる)ユーザー検索 API [*5]