Grok Bot + LinkedIn
Post to LinkedIn from Grok Bot
Through iHatePosting, Grok Bot can publish posts to your profile or a company page, turn several pictures into a carousel, and tag companies. 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 post can hold up to 3,000 characters.
Posting to LinkedIn from Grok Bot
Add iHatePosting to Grok Bot once, connect LinkedIn, 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 LinkedIn 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 LinkedIn post
Describe the post in plain language. Grok Bot writes it, applies the settings and schedules it.
> Write a short LinkedIn post about v2.4 from CHANGELOG.md and schedule it for tomorrow at 9:00 with release.png.
Grok Bot: Done. Scheduled on LinkedIn.What Grok Bot can do on LinkedIn
On LinkedIn, Grok Bot can publish posts to your profile or a company page, turn several pictures into a carousel, and tag companies.
Profile and company pages
Post to your own profile, or to a company page you manage; each is its own channel.
Picture carousels
Give two or more pictures and ask for a carousel, with a name for it.
Company mentions
Find a company by its page name and tag it in the post.
Video posts
Attach one video to a post.
Scheduling
Pick the day and hour; iHatePosting publishes at that time.
How Grok Bot gets a post onto LinkedIn
You say what you want and Grok Bot makes the calls. A typical conversation goes like this.
Find your LinkedIn channel
Which LinkedIn accounts do I have in iHatePosting?
What happens
- Grok Bot lists your channels and finds LinkedIn
- It can also run the mention helper: Find a company page to tag by its exact vanity name (the part after linkedin.com/company/).
Compose your content
Post a thank-you to Microsoft on LinkedIn tomorrow at noon and tag their company page.
What happens
- Grok Bot drafts the text for LinkedIn
- 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 LinkedIn at that time
LinkedIn settings reference
Say the option in your own words and Grok Bot fills in the matching field. This is every LinkedIn setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| post_as_images_carousel | boolean | No | Publish the pictures as one carousel |
| carousel_name | string | No | The name shown for the carousel |
Common configurations
Each case below is a request Grok Bot understands, followed by the LinkedIn options it sets.
A carousel
Post the three slides as a carousel called Launch week
- Applies:
post_as_images_carousel: true,carousel_name: Launch week
A plain post
Post it as a normal post
- Applies:
post_as_images_carousel: false
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.LinkedIn and the other platforms Grok Bot reaches
Ask for LinkedIn and other channels in a single message; every channel still applies its own settings.
LinkedIn requests to try in Grok Bot
Announce a release
Write a short LinkedIn post about v2.4 from CHANGELOG.md and schedule it for tomorrow at 9:00 with release.png.
Tag a company
Post a thank-you to Microsoft on LinkedIn tomorrow at noon and tag their company page.
A slide carousel
Turn slide1.png, slide2.png and slide3.png into a LinkedIn carousel called Launch week and schedule it for Thursday at 10:00.
LinkedIn limits and gotchas to know
A few of LinkedIn's rules shape how Grok Bot writes your request, so it helps to know them.
- A post can hold up to 3,000 characters.
- A post with a video can have only one attachment.
- A carousel needs at least two attachments, and they must all be pictures.
- To tag a company, the agent searches by the part of the company's address after linkedin.com/company/, then puts the tag into the text.
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 LinkedIn 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 post can hold up to 3,000 characters.
Grok Bot can set post_as_images_carousel, carousel_name. 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.