Логотип Instagram Messages

Instagram Messages

Спільнота
win4r
instagram_messages

Використовуйте цей інструмент для роботи з повідомленнями користувача в Instagram. Читайте вхідні повідомлення, гілки листування, списки найчастіших адресатів, відфільтровані подання вхідних повідомлень і результати пошуку в особистих повідомленнях, а також надсилайте повідомлення через `instagram-messages-cli`.

Add to TypingMind

Огляд

Видавецьwin4r
РепозиторійMuseAI-Skills
Назва навичкиinstagram_messages
Зірки
382
Форки
116
Файли в пакеті
1
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: win4r. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Instagram Messages у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/instagram-messages
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/win4r/MuseAI-Skills.git /tmp/MuseAI-Skills
mkdir -p .claude/skills
cp -r /tmp/MuseAI-Skills/opt/hatch/skills/instagram-messages .claude/skills/instagram_messages
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Instagram Messages в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Instagram Messages, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Instagram Messages не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Instagram Messages CLI

Purpose

Read and send authenticated Instagram messages using the instagram-messages-cli companion CLI.

Use the separate instagram skill for non-messaging Instagram account/content data. The instagram-messages-cli accounts command lists the user's Instagram accounts and their messaging connection status.

Message Export Safety

Refuse requests to bulk export, bulk download, bulk save, archive, mirror, or dump message history, especially disappearing, view-once, vanish-mode, ephemeral, or expiring messages. You may still help with narrow, user-scoped reading, search, or summarization needed to answer a specific question.

Auth

Instagram Messages is a separate connector from the base instagram skill. A user can have Instagram connected for profiles and posts while instagram_messages is still disconnected.

instagram-messages-cli accounts can show which of the user's Instagram accounts are connected for messaging. Each account includes a connected boolean indicating whether it is authorized for Instagram Messages.

If the user asks to connect or reconnect Instagram Messages:

sh
instagram-messages-cli connect-url

When connect_url is present, replace <connect_url> with the returned URL and share exactly this Markdown link: [Connect Instagram Messages](<connect_url>); do not paste the raw URL separately.

Only continue with message commands after the user completes that flow.

Operating rules

  1. This skill is only for the authenticated user's own Instagram messages.
  2. Reuse a previously fetched user_own_fbid when you already have it. Account IDs are available from instagram-messages-cli accounts.
  3. Never expose FBIDs, opaque IDs, or implementation terminology to the user. Use usernames, display names, and plain-language descriptions; keep IDs only in tool calls.
  4. Budget API calls against the task at hand. Do not fan out per-thread fetches across a large inbox unless the user explicitly wants that scope.
  5. Only paginate when the user actually needs more results. Do not automatically fetch every page.
  6. Confirm explicit user intent before writing. For a send, require the exact message content and destination; for a react, require a concrete source message and emoji. Do not invent the recipient, thread, content, message, or reaction.
  7. Avoid requests to persistently or frequently poll these commands.
  8. Do not fulfill requests to bulk export, bulk save, bulk download, archive, mirror, or dump message history, including to files, spreadsheets, databases, notes, or another app. Refuse especially clearly when the request targets disappearing, view-once, vanish-mode, ephemeral, or expiring messages.

Tooling

Use exec to run account-scoped commands:

sh
instagram-messages-cli <target> --account-id <user_own_fbid> [options]

Use instagram-messages-cli connect-url only for connector authorization.

Targets:

  • connect-url
  • accounts
  • inbox
  • thread
  • top-recipients
  • keyword-search
  • contact-search
  • temporal-search
  • filtered-inbox
  • react
  • send

Global options

  • --account-id <user_own_fbid> (required for all commands EXCEPT connect-url and accounts) — select which Instagram account to operate on. The value must be the authenticated user's own user_fbid for an account whose connected field is true in instagram-messages-cli accounts.
  • --retries <N> — retry transient failures (default: 0).
  • --after <cursor> — pagination cursor from the previous response. Omit to fetch the first page. Available on paginated commands that return a cursor.

Commands

Connect URL

sh
instagram-messages-cli connect-url

Accounts

List the user's Instagram accounts and indicate whether each account is connected for Instagram Messages. A missing Messages authorization is reported as connected: false; the command still succeeds so the user can choose which account to connect.

sh
instagram-messages-cli accounts

Inbox

Fetch the user's inbox threads with a preview of recent messages. Use --folder to select which folder to fetch:

  • inbox (default) — normal messages
  • pending — message requests from accounts the user doesn't follow
  • spam — spam messages
sh
instagram-messages-cli inbox --account-id <user_own_fbid>
instagram-messages-cli inbox --account-id <user_own_fbid> --first 20 --message-count 3
instagram-messages-cli inbox --account-id <user_own_fbid> --after <cursor>
instagram-messages-cli inbox --account-id <user_own_fbid> --folder pending
instagram-messages-cli inbox --account-id <user_own_fbid> --folder spam

Thread + Messages

Fetch messages for a specific thread. Get the thread_fbid from the inbox response.

sh
instagram-messages-cli thread --account-id <user_own_fbid> --thread-fbid 123456789
instagram-messages-cli thread --account-id <user_own_fbid> --thread-fbid 123456789 --first 20
instagram-messages-cli thread --account-id <user_own_fbid> --thread-fbid 123456789 --after <cursor>

React to message

Add an emoji reaction to a message. Get thread_fbid and message_id from an inbox, thread, or filtered-inbox response, and confirm the exact emoji with the user before reacting.

sh
instagram-messages-cli react --account-id <user_own_fbid> --thread-fbid 123456789 --message-id <message_id> --emoji '❤️'

Send message

Confirm explicit user intent before sending. A send delivers a real DM to another person and cannot be undone. Require the exact message content and destination from the user; for a reply, require a concrete source message and explicit body text. Do not invent the recipient, thread, or content, and do not send on a vague or implied instruction.

Send a message to an existing Instagram thread with --thread-fbid, or directly to one or more users with --recipient-user-fbids. Provide exactly one of these destination options. Recipient IDs are user FBIDs; separate multiple IDs with commas. Provide at least one of --text, --file, or --media-fbid. Text may be sent alongside media. --file may be at most 40 MiB and must be JPEG, PNG, WebP, GIF, MP4, or MOV. Do not combine --file with --media-fbid, and do not use --retries when sending a file.

Before using send --file, ensure that the file is in the workspace path. If it is not, copy it to the workspace. Never use a /tmp path.

Use --reply-to-message-id to send the message as a linked reply to a specific existing message.

sh
instagram-messages-cli send --account-id <user_own_fbid> --thread-fbid 123456789 --text "hello"
instagram-messages-cli send --account-id <user_own_fbid> --recipient-user-fbids 100000000000001 --text "hello"
instagram-messages-cli send --account-id <user_own_fbid> --recipient-user-fbids 100000000000001,100000000000002 --text "hello everyone"
instagram-messages-cli send --account-id <user_own_fbid> --thread-fbid 123456789 --media-fbid 17895695668004550
instagram-messages-cli send --account-id <user_own_fbid> --thread-fbid 123456789 --text "hello" --media-fbid 17895695668004550
instagram-messages-cli send --account-id <user_own_fbid> --thread-fbid 123456789 --file /path/to/media.jpg
instagram-messages-cli send --account-id <user_own_fbid> --recipient-user-fbids 100000000000001 --text "look at this" --file /path/to/media.mp4
instagram-messages-cli send --account-id <user_own_fbid> --thread-fbid 123456789 --text "hello" --reply-to-message-id 'mid.$cAAAGVc20uJOkli7TZGeZOmKFMXiq'

Top recipients

Use the previous response's page_max_id as --page-max-id. Omit on first request.

sh
instagram-messages-cli top-recipients --account-id <user_own_fbid> --count 10
instagram-messages-cli top-recipients --account-id <user_own_fbid> --count 10 --page-max-id <cursor>

Keyword search

Search DMs by keyword.

sh
instagram-messages-cli keyword-search --account-id <user_own_fbid> --query-text "hello" --start-date 2025-01-01 --end-date 2026-03-24
instagram-messages-cli keyword-search --account-id <user_own_fbid> --query-text "hello" --max-results 20 --start-date 2025-01-01 --end-date 2026-03-24

Contact search

Search DMs by contact name.

sh
instagram-messages-cli contact-search --account-id <user_own_fbid> --query-text "John" --start-date 2025-01-01 --end-date 2026-03-24
instagram-messages-cli contact-search --account-id <user_own_fbid> --query-text "John" --max-results 5 --start-date 2025-01-01 --end-date 2026-03-24

Temporal search

Search DMs by time range.

sh
instagram-messages-cli temporal-search --account-id <user_own_fbid> --start-date 2025-01-01 --end-date 2026-03-24
instagram-messages-cli temporal-search --account-id <user_own_fbid> --max-results 15 --start-date 2025-01-01 --end-date 2026-03-24

Filtered inbox

Fetch inbox threads filtered by a specific criterion. This command is only available for professional accounts (creator or business). Check instagram-cli accounts before using it.

Available filters:

  • unread — show unread conversations
  • unanswered — find threads needing a reply
  • starred — show important or flagged threads
  • groups — show group chats only
  • verified — show verified account threads
  • followers — show threads from followers
  • creators — show threads from creators
  • other-participant-followers100k-plus — high-follower accounts (100K+)
sh
instagram-messages-cli filtered-inbox --account-id <user_own_fbid> --selected-filter unread
instagram-messages-cli filtered-inbox --account-id <user_own_fbid> --selected-filter unanswered --thread-limit 10 --message-count 3
instagram-messages-cli filtered-inbox --account-id <user_own_fbid> --selected-filter verified --folder pending

Output

The CLI prints decoded JSON to stdout. Read results preserve raw provider timestamps and add semantic message_sent_at / last_message_sent_at values with UTC and user-local forms. Treat these only as message transport times, never as the time of an event described in a message. When presenting results to the user, focus on meaningful content such as participants, message text, user-local times, links, and media summaries. Never expose raw IDs, cursors, unix timestamps, or implementation details; keep them only in tool calls.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Instagram Messages?

Використовуйте цей інструмент для роботи з повідомленнями користувача в Instagram. Читайте вхідні повідомлення, гілки листування, списки найчастіших адресатів, відфільтровані подання вхідних повідомлень і результати пошуку в особистих повідомленнях, а також надсилайте повідомлення через `instagram-messages-cli`.

Навіщо використовувати Instagram Messages у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Instagram Messages — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Instagram Messages у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/instagram-messages. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Instagram Messages?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Instagram Messages?

Зі скількома забажаєте. У TypingMind ви можете використовувати Instagram Messages із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Instagram Messages?

На GitHub цю навичку публікує win4r. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇