Grok Bot + TikTok
Post to TikTok from Grok Bot
Through iHatePosting, Grok Bot can publish videos and photo posts directly, or send them to your TikTok app inbox to finish there. 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 must have an attachment: one video, one picture or several pictures.
Posting to TikTok from Grok Bot
Add iHatePosting to Grok Bot once, connect TikTok, 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 TikTok 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 TikTok post
Describe the post in plain language. Grok Bot writes it, applies the settings and schedules it.
> Publish clip.mp4 to TikTok for everyone with comments on and duets off, tomorrow at 18:00.
Grok Bot: Done. Scheduled on TikTok.What Grok Bot can do on TikTok
On TikTok, Grok Bot can publish videos and photo posts directly, or send them to your TikTok app inbox to finish there.
Direct publishing
Publish a video or a photo post straight to your account.
Upload to inbox
Send the media to the TikTok app, where you finish and publish it within 24 hours.
Privacy level
Choose who can watch: everyone, mutual friends, followers or only you.
Interaction settings
Allow or block comments, duets and stitches on videos.
Disclosures
Label a post as AI-generated, or as branded content.
How Grok Bot gets a post onto TikTok
You say what you want and Grok Bot makes the calls. A typical conversation goes like this.
Find your TikTok channel
Which TikTok accounts do I have in iHatePosting?
What happens
- Grok Bot lists your channels and finds TikTok
- It also reads the channel's rules and settings
Compose your content
Post the four photos to TikTok as a photo post for followers only, with the title Behind the scenes.
What happens
- Grok Bot drafts the text for TikTok
- 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 TikTok at that time
TikTok settings reference
Say the option in your own words and Grok Bot fills in the matching field. This is every TikTok setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| content_posting_method | string | Yes | DIRECT_POST publishes the post. UPLOAD only sends the media to the TikTok app inbox, and TikTok then ignores every other setting here |
| privacy_level | string | Yes | PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR or SELF_ONLY. Applied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD. |
| title | string | No | Used as the title of the post. The only setting TikTok keeps when content_posting_method=UPLOAD. |
| duet | boolean | Yes | Video posts only, and only when content_posting_method=DIRECT_POST. TikTok has no duet setting for photo posts. |
| stitch | boolean | Yes | Video posts only, and only when content_posting_method=DIRECT_POST. TikTok has no stitch setting for photo posts. |
| comment | boolean | Yes | Applied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD. |
| autoAddMusic | string | Yes | Photo posts only, and only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD. "yes" lets TikTok auto-add its recommended music. |
| brand_content_toggle | boolean | Yes | Applied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD. |
| brand_organic_toggle | boolean | Yes | Applied only when content_posting_method=DIRECT_POST. Ignored by TikTok on UPLOAD. |
| video_made_with_ai | boolean | No | Labels the post as AI generated. Video posts only, and only when content_posting_method=DIRECT_POST. TikTok has no AI-generated label for photo posts, and discards it on UPLOAD. |
Common configurations
Each case below is a request Grok Bot understands, followed by the TikTok options it sets.
Public video
Publish it for everyone with comments on
- Applies:
content_posting_method:DIRECT_POST,privacy_level:PUBLIC_TO_EVERYONE, comment: true
Only me
Publish it so only I can see it
- Applies:
privacy_level:SELF_ONLY
Finish it in the app
Send it to my TikTok inbox, I will review it there
- Applies:
content_posting_method: UPLOAD
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.TikTok and the other platforms Grok Bot reaches
Ask for TikTok and other channels in a single message; every channel still applies its own settings.
TikTok requests to try in Grok Bot
Post a video
Publish clip.mp4 to TikTok for everyone with comments on and duets off, tomorrow at 18:00.
A photo post
Post the four photos to TikTok as a photo post for followers only, with the title Behind the scenes.
Review in the app
Send teaser.mp4 to my TikTok inbox so I can edit it in the app before publishing.
TikTok limits and gotchas to know
A few of TikTok's rules shape how Grok Bot writes your request, so it helps to know them.
- A post must have an attachment: one video, one picture or several pictures.
- UPLOAD does not publish. The media waits in your TikTok app inbox for 24 hours, and every setting but the title is ignored.
- duet, stitch and the AI label apply to videos only; TikTok has no such setting for photo posts.
- A caption can hold up to 2,000 characters, and the title up to 90.
- A picture can be at most 1,080 pixels on its shorter side.
- Every post must carry all eight required settings, even one that goes to your TikTok app inbox.
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 TikTok 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,000 characters, and the title up to 90.
Grok Bot can set content_posting_method, privacy_level, title, duet, stitch, comment, autoAddMusic, brand_content_toggle, brand_organic_toggle, video_made_with_ai. 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.