Pluggzyドキュメント

Instagram Business

受信トレイコメントインサイト投稿リールとストーリーズ
受信トレイコメントインサイト投稿リールとストーリーズ

ビジネスアカウントとクリエイターアカウント向けで、Instagramの公式APIを使います。どのAIアプリからでも、Metaの返信期限内でのDMへの返信、コメントの対応、インサイトの確認、投稿・リール・ストーリーズの公開ができます。

Instagram Businessを接続
接続方法
ブラウザでInstagramにログイン
ツール
16
1日25投稿(公開または予約)
2~5秒操作の間隔(ランダム)
2,200キャプションの文字数
1日200メッセージと返信

上限

操作1日あたり1分あたり最小間隔ペースツール
読み取り投稿オプションとアカウント一覧3,00030——list_chatsget_messagespost_optionslist_postslist_commentsget_insights
受信トレイの更新既読、リアクション500101秒—mark_readreact
メッセージ200102秒2~5秒send_messagecommentprivate_reply
投稿25230秒2~5秒create_post
削除コメント3035秒—moderate_comment
予約投稿一覧表示とキャンセル————list_scheduled_postscancel_scheduled_post
読み取り3,000/日
投稿オプションとアカウント一覧
30/分 · ペース調整なし
list_chatsget_messagespost_optionslist_postslist_commentsget_insights
受信トレイの更新500/日
既読、リアクション
10/分 · 最小間隔1秒
mark_readreact
メッセージ200/日
10/分 · 最小間隔2秒 · 2~5秒の間隔
send_messagecommentprivate_reply
投稿25/日
2/分 · 最小間隔30秒 · 2~5秒の間隔
create_post
削除30/日
コメント
3/分 · 最小間隔5秒
moderate_comment
予約投稿—
一覧表示とキャンセル
list_scheduled_postscancel_scheduled_post
  • メッセージに添付できるファイル:1メッセージにつき画像1つ(JPEG、PNG、WebP、最大8MB)またはドキュメント1つ(PDFのみ、最大15MB)。送られてきたファイルはリンクとして届きます。
  • 1日の上限はUTCの00:00に、1週間の上限は月曜日のUTC 00:00にリセットされます。
  • 予約投稿の一覧表示とキャンセルはPluggzy内で行われるため、Instagram Businessへの呼び出しは発生しません。

投稿ルール

Instagram Businessが受け付ける内容です。送信前にチェックするため、問題のある投稿で何かを失うことはありません。

キャプション必須textに最大2,200文字。
メディア必須必須: 画像最大20枚(image_urls)または動画1本(video_url)のどちらか一方を指定します。端末上のファイルは、先にupload_mediaでアップロードします。
storyPublish as a Story (one image, or one video ≤60 s) instead of a feed post or Reel.
share_to_feedInstagram Business, Reels: also show the Reel in the feed (default true)
first_commentInstagram Business, Facebook and LinkedIn Pages: posted as the first comment right after publishing (the place for links; not for Stories)
collaboratorsUp to 3 usernames of public Business or Creator accounts invited as collaborators (not for Stories)
thumbnail_urlCover of a Reel

安全のための上限

Instagram Businessアカウントを健全な状態に保つための仕組みです。このアカウントのすべてのAIアプリとAPIキーに適用され、オフにすることはできません。

ペース2~5秒
このアカウントのすべてのアプリとキーをまたいで、Instagram Businessでの操作の間にランダムな間隔を空けます。
二重投稿なし10分
同じアカウントで10分以内に同じ投稿をすると、2回公開するのではなく、最初の応答をそのまま返します。
制限時のクールダウン5分
レート制限の応答を受けると、アカウントは最低5分、Instagram Business自体から求められた場合は30分休止します。その間の呼び出しには、残り時間が返されます。
予約投稿の期間1年
publish_atは1分以上先、1年以内で指定します。リンクはその時点まで有効である必要があります。アップロードしたファイルは投稿とともに保持されます。
コメントの削除30 / 日
非表示よりずっと少なく抑えているため、誤ったループで投稿のコメントがすべて消えることはありません。
アカウント全体の上限10 / 分
各操作ごとの1分あたりの上限に加えて、アカウントごとに読み取りを除き合計で1分あたり最大10回の呼び出しに制限します。

上限に達したとき

知らないうちにキューに入れたり再試行したりすることはありません。ツールは、AIアプリが読んで説明し、適切なタイミングで再試行できるエラーを返します。

invalid_post投稿がInstagram Businessのルールに違反しています。どのルールかはメッセージに記載されています。
gap前回の操作から間もなすぎます。retry_after_secondsだけ待ってください。
limit1日または1週間の上限に達しました。リセットされる時刻も返されます。
cooldownInstagram Businessから制限がかかり、アカウントは休止中です。
permissionこのアプリには、その操作が許可されていません。再接続して許可してください。
拒否の例
isError
{
  "error": "Instagram Business actions are spaced 2–5 s apart, at random, to look human. Wait 2s.",
  "code": "gap",
  "retry_after_seconds": 2
}

分析

get_insightsがInstagram Businessで読み取る内容です。普段の言葉で質問すれば、AIアプリがレポートを選びます。

概要overview 初期値直近days日間の表示回数、リーチ、エンゲージメント、フォロワーを、各サービス独自の指標と、全サービス共通の主要指標で表示します。accountを指定しない場合は、すべての分析アカウントを並べて表示します。
フォロワーfollowers 日ごとのフォロワー数(YouTubeではチャンネル登録者数)と、増えた数・減った数。
オーディエンスaudience 国別・都市別のフォロワーと、サービスが報告している場合は年齢・性別ごとのフォロワー。
上位の投稿top_posts 期間中のベスト投稿を、エンゲージメント順、またはsort(表示回数、リーチ、いいね、コメント、シェア、日付)で並べます。accountを指定しない場合は、 すべての分析アカウントが対象です。
投稿に最適な時間timing 自分の投稿で成果が出やすい曜日と時間帯(UTC)、投稿頻度とエンゲージメントの関係、投稿がピークに達するまでの速さ。Instagramでは、フォロワーがオンラインの時間。
受信トレイのアクティビティinbox 受信・送信したメッセージ数、最初の返信までの時間の中央値、最も忙しい時間帯。
個別の投稿post list_posts、上位の投稿、またはcreate_postから得たpost_idで、1件の投稿の数値を表示します。details: trueを指定すると、 日ごとの推移とサービス独自の追加情報も表示します。

ツール

AIアプリがtools/listから受け取る内容そのままです。書き込みツールは、アカウントで何かを送信または変更します。優れたアシスタントは、送信前に文面を表示します。

ツール16個 · 読み取り7 · 書き込み9
受信トレイ5

Reply in an existing conversation (chat_id from list_chats), on any network: 1-to-1, group, or a Facebook Page's chat (answered as the Page). Plain text. Show the user the exact text (and which file) before calling this. One file can go with the text: image_url (an https link to an image), file_url (an https link to a document) or media_id (from upload_media, for an image or a document the user has on their device or attached in the chat). Documents: PDF, Word, Excel, PowerPoint (docx, xlsx, pptx, doc, xls, ppt), TXT or CSV, at most 15 MB; WhatsApp, Telegram, LinkedIn and Facebook Messenger take PDF, Word, Excel, PowerPoint, TXT and CSV files; Instagram takes PDFs only; Instagram Business takes PDFs only and Facebook Pages any of them. Instagram Business allow replies within 24 hours of the person's last message (Instagram: at most 1000 characters, JPEG or PNG); up to 7 days after it, only a reply the user wrote or approved word for word, with user_written: true (never for text you wrote on your own).

権限 Send messages & posts上限 メッセージ · 200/日ペース調整あり 2~5秒先にユーザーに確認
入力パラメーター7個 · 必須2個
accountstring
account_id from list_accounts (a listed chat's account_id). Needed only when several accounts are connected.
chat_idstring必須
textstring必須
最大8,000文字
image_urlstring
https link to a JPEG, PNG or WebP image (at most 8 MB) that is already online. Optional. For an image the user attached in the chat or has on their device, use media_id instead.
https://
file_urlstring
https link to a document that is already online (PDF, Word, Excel, PowerPoint (docx, xlsx, pptx, doc, xls, ppt), TXT or CSV, at most 15 MB). Optional. For a file the user has on their device or attached in the chat, use media_id instead.
https://
media_idstring
An image or a document the user uploaded: call upload_media, then pass its media_id here once the file is uploaded (the user says so, or your own upload_command answered ok).
user_writtenboolean
Instagram Business: true only when the user typed this exact text or approved it word for word: lets the reply go out up to 7 days after the person's last message instead of 24 hours
初期値 false
出力structuredContent
{
  "structuredContent": {
    "chat_id": "gq5Xp3bZUXCt6Zt1Z2rTsA",
    "message_id": "7mKQx2VdTnW8bLr4Yc9ey7",
    "sent": true
  },
  "content": [
    {
      "type": "text",
      "text": "Message sent."
    }
  ]
}
ゲートの処理内容例09:41:02 → 09:41:04
  1. 受信09:41:02
  2. 上限内本日200件中56件
  3. 間隔を調整+2 s
  4. 送信済み09:41:04
本日のメッセージ:200件中56件を使用 · 00:00 UTCにリセット
テキストの冒頭 “Message sent.” · 拒否される場合のエラーgaplimitcooldownpermission
公開3
投稿1
コメントとレビュー4
予約投稿2
分析1
pluggzy.com/api/docsから生成 · 47個のツールわかりにくい点がありますか? サポートに問い合わせる · ステータス