Grok Bot + X
Post to X (Twitter) from Grok Bot
Through iHatePosting, Grok Bot can post one update or a whole thread in sequence, add pictures or a video, write long-form articles, reach X Communities and limit who can answer. 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 is limited to 280 characters. The channel reports its own limit: 4,000 when its Verified setting is on, and 100,000 for an article. Ask for a thread when the text is longer.
Posting to X from Grok Bot
Add iHatePosting to Grok Bot once, connect X, 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 X 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 X post
Describe the post in plain language. Grok Bot writes it, applies the settings and schedules it.
> Write a six-post thread that introduces the project and schedule it on X for Monday at 10:00, with hero.png on the first post.
Grok Bot: Done. Scheduled on X.What Grok Bot can do on X
On X, Grok Bot can post one update or a whole thread in sequence, add pictures or a video, write long-form articles, reach X Communities and limit who can answer.
Reply controls
Choose who may reply to a post: everyone, people you follow, people you mention, subscribers or verified accounts.
Threads
Ask for a thread and your text is split into separate posts that go out in order.
Communities
Give the address of an X Community and the post is published into it.
Long-form articles
Write the post as an article with a title, and save it as a draft on X or publish it straight away; X allows articles on X Premium accounts.
Pictures and video
Attach up to four pictures or one video from your media library.
Scheduling
Name a date and time and iHatePosting publishes the post then.
How Grok Bot gets a post onto X
You say what you want and Grok Bot makes the calls. A typical conversation goes like this.
Find your X channel
Which X accounts do I have in iHatePosting?
What happens
- Grok Bot lists your channels and finds X
- It also reads the channel's rules and settings
Compose your content
Share "Dark mode has landed in 2.4" in the X Community https://x.com/i/communities/1234567890 and let only verified accounts answer.
What happens
- Grok Bot drafts the text for X
- 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 X at that time
X settings reference
Say the option in your own words and Grok Bot fills in the matching field. This is every X setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| who_can_reply_post | string | Yes | Who may reply: everyone, following, mentionedUsers, subscribers or verified (required unless post_type is article) |
| community | string | No | Address of an X Community to post into, such as https://x.com/i/communities/1234567890 |
| post_type | string | No | post = a regular short post (plain text). article = a long-form X article: write the post content as HTML (p, h1, h2, h3, ul, ol, li, strong, u, a) - the formatting is kept in the article |
| article_title | string | No | The title of the article, required when post_type is article |
| article_status | string | No | draft = save the article as a draft on X, published = publish it right away, required when post_type is article |
| article_cover | object | No | Optional cover image for the article, only used when post_type is article |
| made_with_ai | boolean | No | Marks the post as made with AI |
| paid_partnership | boolean | No | Marks the post as a paid partnership |
Common configurations
Each case below is a request Grok Bot understands, followed by the X options it sets.
Everyone can reply
Let everyone reply
- Applies:
who_can_reply_post: everyone
Followers only
Only people I follow can reply
- Applies:
who_can_reply_post: following
Post into a community
Post it into https://x.com/i/communities/1234567890
- Applies: community:
https://x.com/i/communities/1234567890,who_can_reply_post: everyone
Article saved as a draft
Make it an article called Release notes and keep it as a draft
- Applies:
post_type: article,article_title: Release notes,article_status: draft
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.X and the other platforms Grok Bot reaches
Ask for X and other channels in a single message; every channel still applies its own settings.
X requests to try in Grok Bot
A launch thread
Write a six-post thread that introduces the project and schedule it on X for Monday at 10:00, with hero.png on the first post.
A community post
Share "Dark mode has landed in 2.4" in the X Community https://x.com/i/communities/1234567890 and let only verified accounts answer.
A weekday tip
Draft a one-sentence tip about our product for X every weekday at 9:00 this week and keep them as drafts.
X limits and gotchas to know
A few of X's rules shape how Grok Bot writes your request, so it helps to know them.
- A post is limited to 280 characters. The channel reports its own limit: 4,000 when its Verified setting is on, and 100,000 for an article. Ask for a thread when the text is longer.
- A post can carry up to four pictures, or one video, or nothing.
- In an article, pictures go inside the content as img tags, and each picture must come from your media library first.
- A community address must look like
https://x.com/i/communities/followed by digits, or the post is refused. - Every post other than an article must say who may reply. An article takes pictures only, a draft article cannot carry thread replies, and publishing articles needs X Premium.
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 X 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 is limited to 280 characters. The channel reports its own limit: 4,000 when its Verified setting is on, and 100,000 for an article. Ask for a thread when the text is longer.
Grok Bot can set who_can_reply_post, community, post_type, article_title, article_status, article_cover, made_with_ai, paid_partnership. 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.