Messenger
Messengerは、Facebookのログインを別の名前で表示したものです。どのAIアプリからでも、チャット、メッセージリクエスト、ページの会話を読んで返信でき、操作は10~20秒の間隔を空けて行われます。ほかのすべてのチャンネルと同じ会話用ツールを使います。
上限
接続済みのMessengerアカウントごとの上限で、そのアカウントを使うすべてのAIアプリとAPIキーで共有されます。 どのサービスでも同じツールが使え、各アカウントにはそれぞれの上限があります。
- メッセージに添付できるファイル:1メッセージにつき画像1つ(JPEG、PNG、WebP、最大8MB)またはドキュメント1つ(PDF、Word、Excel、PowerPoint、TXT、CSV、最大15MB)。AIは送られてきた画像(最大3.75MB)を確認でき、PDF、Word、Excel、TXT、CSVのファイル(最大15MB)をテキストとして読み取れます。
- 1日の上限はUTCの00:00に、1週間の上限は月曜日のUTC 00:00にリセットされます。
投稿ルール
Messengerが受け付ける内容です。送信前にチェックするため、問題のある投稿で何かを失うことはありません。
textに最大10,000文字。image_urls)または動画1本(video_url、最大500MB、1秒~240分)のどちらか一方を指定します。端末上のファイルは、先にupload_mediaでアップロードします。visibilityLinkedIn: anyone (default) or relations_only (connections). Facebook: anyone (default: everyone) or relations_only (friends; not as a Page). YouTube: public (default), private or unlistedanyonerelations_onlypublicprivateunlistedas_pageFacebook: publish as this Page (page_id from facebook_list_pages) instead of the personal accountshare_post_idFacebook: post_id of a post to share (text optional, no image; not schedulable)安全のための上限
Messengerアカウントを健全な状態に保つための仕組みです。このアカウントのすべてのAIアプリとAPIキーに適用され、オフにすることはできません。
fresh: trueを指定すると、最新の状態を読み取ります。上限に達したとき
知らないうちにキューに入れたり再試行したりすることはありません。ツールは、AIアプリが読んで説明し、適切なタイミングで再試行できるエラーを返します。
gap前回の操作から間もなすぎます。retry_after_secondsだけ待ってください。limit1日または1週間の上限に達しました。リセットされる時刻も返されます。cooldownMessengerから制限がかかり、アカウントは休止中です。permissionこのアプリには、その操作が許可されていません。再接続して許可してください。{ "error": "Facebook actions are spaced 10–20 s apart, at random, to look human. Wait 10s.", "code": "gap", "retry_after_seconds": 10 }
ツール
MessengerはFacebookのチャットツールを使います。ログインも上限も同じです。
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
- 上限内本日50件中14件
- 間隔を調整+12 s
- 送信済み09:41:14