Grok Bot + Instagram
Post to Instagram from Grok Bot
Through iHatePosting, Grok Bot can put pictures and carousels on your feed, share stories and reels, and add collaborators to a post. Paste one setup message to your Grok Bot and give it your API key in its secret prompt, then ask it for the post you want.
Setup takes about a minute. A caption can hold up to 2,200 characters.
Posting to Instagram from Grok Bot
Add iHatePosting to Grok Bot once, connect Instagram, and then describe the post. Setup takes about a minute.
Add iHatePosting to Grok Bot once
Paste one setup message to your Grok Bot and give it your API key in its secret prompt. Then connect Instagram in iHatePosting if you have not already.
Set up iHatePosting so you can draft, schedule and publish my social media posts.
- Install its command line on your cloud computer: npm install -g ihateposting
- Install its skill: npx skills add iHatePostingOrg/iHatePosting-Agent
- Ask me for my iHatePosting API key through your secure form, never in this chat, and keep it as IHATEPOSTING_API_KEY.
- Check it works: run ihateposting integrations:list.
- Save posts as drafts unless I say otherwise, and ask me before you publish anything.
When it works, show me my connected accounts.Ask for the Instagram post
Describe the post in plain language. Grok Bot writes it, applies the settings and schedules it.
> Share menu.jpg on Instagram tomorrow at 11:00 with a short caption that introduces our autumn dishes.
Grok Bot: Done. Scheduled on Instagram.What Grok Bot can do on Instagram
On Instagram, Grok Bot can put pictures and carousels on your feed, share stories and reels, and add collaborators to a post.
Feed posts
Publish a picture or a carousel with a caption.
Stories
Publish stories: each picture or video you attach becomes a story of its own.
Reels
Publish a video as a reel, including a trial reel that is shown to non-followers first.
Collaborators
Invite other accounts as collaborators on a post.
Scheduling
Choose the time, and iHatePosting publishes it for you.
How Grok Bot gets a post onto Instagram
You say what you want and Grok Bot makes the calls. A typical conversation goes like this.
Find your Instagram channel
Which Instagram accounts do I have in iHatePosting?
What happens
- Grok Bot lists your channels and finds Instagram
- It also reads the channel's rules and settings
Compose your content
Post sale.png as an Instagram story today at 17:00.
What happens
- Grok Bot drafts the text for Instagram
- It uploads any media you mention
Schedule and publish
Yes, schedule it for tomorrow at 9:00.
What happens
- Grok Bot schedules the post in iHatePosting
- iHatePosting publishes it to Instagram at that time
Instagram settings reference
Say the option in your own words and Grok Bot fills in the matching field. This is every Instagram setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| post_type | string | Yes | post or story |
| is_trial_reel | boolean | No | Publish the reel as a trial reel |
| graduation_strategy | string | No | How a trial reel graduates to followers: MANUAL or SS_PERFORMANCE |
| collaborators | array | No | Accounts to invite as collaborators, each as a label |
Common configurations
Each case below is a request Grok Bot understands, followed by the Instagram options it sets.
A story
Post it as a story
- Applies:
post_type: story
A feed post
Post it to my feed
- Applies:
post_type: post
A trial reel
Publish the video as a trial reel that I will graduate by hand
- Applies:
is_trial_reel: true,graduation_strategy: MANUAL
What is Grok Bot?
Grok Bot is xAI's always-on agent, used through a Cursor account. You create named Bots and give each a job; your Bots share one cloud computer with a browser, files and a terminal.
Once a Bot has the iHatePosting command line installed, it writes, queues and sends your posts from that computer.
How iHatePosting works with Grok Bot
Installed as a skill, iHatePosting gives Grok Bot a SKILL.md that teaches it the commands and how to shape a post for each platform, and the ihateposting command line does the work.
- Paste the message into a chat with the agent
# A message to paste into the chat
Set up iHatePosting so you can draft, schedule and publish my social media posts.
- Install its command line on your cloud computer: npm install -g ihateposting
- Install its skill: npx skills add iHatePostingOrg/iHatePosting-Agent
- Ask me for my iHatePosting API key through your secure form, never in this chat, and keep it as IHATEPOSTING_API_KEY.
- Check it works: run ihateposting integrations:list.
- Save posts as drafts unless I say otherwise, and ask me before you publish anything.
When it works, show me my connected accounts.Instagram and the other platforms Grok Bot reaches
Ask for Instagram and other channels in a single message; every channel still applies its own settings.
Instagram requests to try in Grok Bot
A feed post
Share menu.jpg on Instagram tomorrow at 11:00 with a short caption that introduces our autumn dishes.
A story
Post sale.png as an Instagram story today at 17:00.
A reel
Publish demo.mp4 as an Instagram reel on Friday at 18:00 and invite @studio as a collaborator.
Instagram limits and gotchas to know
A few of Instagram's rules shape how Grok Bot writes your request, so it helps to know them.
- A caption can hold up to 2,200 characters.
- Instagram takes no post without a picture or a video.
- Each file of a story becomes its own story, and a story takes no collaborators.
- A trial reel is a single video, and Instagram offers trial reels only to eligible accounts.
- Alt text on a picture can hold up to 1,000 characters.
post_typeis required on every post; the agent uses post unless you ask for a story.
Frequently asked questions
Start free for 30 daysPaste one setup message to your Grok Bot and give it your API key in its secret prompt, connect Instagram in iHatePosting, then ask Grok Bot for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A caption can hold up to 2,200 characters.
Grok Bot can set post_type, is_trial_reel, graduation_strategy, collaborators. The settings reference on this page lists what each one does.
Yes. Make a key in iHatePosting (Settings → Agents / Dev) and hand it to Grok Bot as the steps above show. The command line can sign in with ihateposting auth:login instead.
Yes. Name a day and a time and iHatePosting publishes the post then, whether or not Grok Bot is still open. An agent that keeps running can also repeat a job on a routine you give it.