Instagram Business
ビジネスアカウントとクリエイターアカウント向けで、Instagramの公式APIを使います。どのAIアプリからでも、Metaの返信期限内でのDMへの返信、コメントの対応、インサイトの確認、投稿・リール・ストーリーズの公開ができます。
上限
- メッセージに添付できるファイル: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文字。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キーに適用され、オフにすることはできません。
publish_atは1分以上先、1年以内で指定します。リンクはその時点まで有効である必要があります。アップロードしたファイルは投稿とともに保持されます。上限に達したとき
知らないうちにキューに入れたり再試行したりすることはありません。ツールは、AIアプリが読んで説明し、適切なタイミングで再試行できるエラーを返します。
invalid_post投稿がInstagram Businessのルールに違反しています。どのルールかはメッセージに記載されています。gap前回の操作から間もなすぎます。retry_after_secondsだけ待ってください。limit1日または1週間の上限に達しました。リセットされる時刻も返されます。cooldownInstagram Businessから制限がかかり、アカウントは休止中です。permissionこのアプリには、その操作が許可されていません。再接続して許可してください。{ "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から受け取る内容そのままです。書き込みツールは、アカウントで何かを送信または変更します。優れたアシスタントは、送信前に文面を表示します。
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).
accountstringaccount_id from list_accounts (a listed chat's account_id). Needed only when several accounts are connected.chat_idstring必須textstring必須image_urlstringmedia_id instead.file_urlstringmedia_id instead.media_idstringupload_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{ "structuredContent": { "chat_id": "gq5Xp3bZUXCt6Zt1Z2rTsA", "message_id": "7mKQx2VdTnW8bLr4Yc9ey7", "sent": true }, "content": [ { "type": "text", "text": "Message sent." } ] }
- 受信09:41:02
- 上限内本日200件中56件
- 間隔を調整+2 s
- 送信済み09:41:04