# Social media skills

> Use your own Instagram, Facebook, Threads and TikTok accounts the way a person does, once or on a repeat, to warm an account up or post.

A **skill** is one thing a person does on a site: scroll the Instagram feed, watch TikTok videos, like a post, reply to a thread, follow someone, publish a post. A **skills job** plays a list of skills in one browser tab, logged in with a [browser profile](/docs/browser-profiles), and records what each step did. Run one once, or on a repeat to warm a new account up the way its owner would.

Skills move like a person. The mouse travels on curved paths and sometimes overshoots, the wheel scrolls in flicks that slow down, text is typed key by key with natural pauses and the odd corrected typo, and the run pauses between steps. The page cannot see the scripts that read it. The profile keeps the same login, device, locale, time zone and IP country on every run, so the site sees one person on one phone.

## List the skills

```bash
curl https://api.hoshime.com/v1/browser/skills \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
```

Each skill has its parameters, whether it needs a signed-in profile (`login`) and its `dailyLimit`. Add `?platform=tiktok` for one platform. The `web` skills (`web.visit`, `web.wait`) work on any site.

| Platform | Skills |
|---|---|
| Instagram | warm up, scroll the feed, watch reels, view stories, visit a profile, search, open notifications, like, save, comment or reply, follow, unfollow, publish a post |
| Facebook | warm up, scroll the feed, watch videos, view stories, visit a profile or page, search, open notifications, like or react, comment or reply, follow, unfollow, add a friend, join a group, like and comment in a group, publish a post (in a group or as a Page too), switch to a Page |
| Threads | warm up, scroll the feed, read a post and its replies, visit a profile, search, open activity, like, save, reply, repost, quote, follow, unfollow, publish a thread |
| TikTok | warm up, watch the For You feed, visit a profile, search, open the inbox, like, add to Favorites, repost, comment or reply, follow, unfollow, upload a video |

## Sign the profile in

Create a profile and log in to the platform by hand in a live browser, or import the cookies of a browser that is already logged in. See [Browser profiles](/docs/browser-profiles). Use one profile per social account, and give it the country the account usually lives in.

## Run skills

```bash
curl https://api.hoshime.com/v1/jobs \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -d '{
    "maxAttempts": 1,
    "skills": {
      "profileId": "bpr_…",
      "maxMinutes": 10,
      "steps": [
        {"skill": "instagram.scrollFeed", "params": {"seconds": 240, "likeChance": 10}},
        {"skill": "instagram.viewStories", "params": {"count": 5}},
        {"skill": "instagram.comment", "params": {"url": "https://www.instagram.com/p/…/", "text": "Love this"}, "optional": true}
      ]
    }
  }'
```

- `steps` (1 to 50) run in order. A failed `optional` step is skipped; any other failure ends the run and fails the job.
- `maxMinutes` (1 to 14, default 10) caps the run. Each started minute bills 25 units.
- `tunnel` runs the browser on your own connection through a [tunnel](/docs/tunnels), so the site sees your IP instead of the profile's residential one.
- The run saves the login it ends with into the profile, unless the site signed it out or asked to verify it.

`GET /v1/jobs/:id` returns `skillsResult.steps`, one per step: its `status` (`done`, `failed` or `skipped`), the `code` and `error` of a failure, what it returned (such as the posts it liked or the link of a new post) and how long it took. The same result goes out in the `job.completed` and `job.failed` webhooks.

## Warm an account up

Each platform has a `warmup` skill: a mixed session of scrolling, watching, searching and a few likes, in a different order every run. Put it on a schedule, and keep the actions light at first: mostly scrolling and watching, follows and comments only after some days.

## Let the AI pick posts and write comments

Give a step that comments a `persona`, a sentence or two about who the account is and what it cares about. An AI then reads each post before the account comments on it: it comments only on posts that fit the account, and writes each comment from what the post and the comments under it say, in the post's language. The AI passes by ads, giveaways, bait and touchy topics, and its comments never hold links, mentions or hashtags. Comments in the feed and warm-up skills (`commentChance`) need a `persona`; a comment or reply skill writes its own text when you leave `text` empty, and returns `commented` (or `replied`) false when the AI judges the post is not one to comment on. Each AI answer bills 1 unit. Likes never ask the AI: `minLikes` picks them.

```json
{"skill": "threads.warmup", "params": {"minutes": 8, "likeChance": 8, "commentChance": 3,
  "persona": "a home baker in Jakarta who loves sourdough, coffee and small food businesses"}}
```

```bash
curl -X PUT https://api.hoshime.com/v1/schedules \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -d '{
    "name": "warm up @shop",
    "cron": "40 19 * * *",
    "timezone": "Asia/Jakarta",
    "maxAttempts": 1,
    "skills": {"profileId": "bpr_…", "maxMinutes": 14, "steps": [
      {"skill": "instagram.warmup", "params": {"minutes": 8, "likeChance": 8, "maxLikes": 5}},
      {"skill": "web.wait", "params": {"minSeconds": 30, "maxSeconds": 120}},
      {"skill": "instagram.watch", "params": {"seconds": 180}}
    ]}
  }'
```

## Find popular posts

To find where to join in, let a skill list the posts it read, most-liked first, each with its `url`, `author`, `text` and `likes`, at most 30, under `popular`. `threads.search` lists the top results it reads for `query`. `instagram.search` and `tiktok.search` page through up to `scan` posts of a keyword, opening each one to read its likes. `threads.scrollFeed` and `instagram.scrollFeed` list the feed posts they read. Then comment on the ones that fit with the comment or reply skill.

```json
{"skill": "tiktok.search", "params": {"query": "kopi susu", "scan": 12}}
```

## How hoshime keeps the account safe

- **Caps per step.** The feed, reels and warm-up skills like, follow or comment only up to `maxLikes`, `maxFollows` and `maxComments` in one step (10 likes by default), however long it runs.
- **Popular posts only.** Those skills like only posts that already show at least `minLikes` likes (50 by default), never ads, and pass by any post whose count they cannot read. Set `minLikes` to 0 to like any post.
- **Daily limits.** Liking, commenting, following, unfollowing and posting stay under a daily limit per profile, well below what each platform tolerates. A step over its limit fails before the browser opens.
- **Cooldown.** When a site shows a checkpoint, an action block ("Try again later") or signs the account out, the run stops at once and the profile rests on that platform for 24 hours, doubling with each new block up to 7 days. Runs on the platform fail at once until then, and a schedule's runs end skipped; open the profile in a live browser to clear the checkpoint.
- **One run per profile.** Two runs never use the same profile at the same time: the later one waits.
- **No repeat after a step.** A run that failed after its steps began is not retried, so nothing is liked or posted twice. Only a run whose network was down before the first step retries.

## Error codes

| `code` | Meaning |
|---|---|
| `element_not_found` | The page did not show what the step needed, such as a post that was deleted. |
| `ai_unavailable` | A step with a `persona` could not reach the AI, so it stopped at the first post it asked about. Run it again later. |
| `page_stuck` | The page did not respond to a click or a scroll. |
| `navigation_failed` | A page did not load. |
| `logged_out` | The profile is not signed in to the platform. Log it in again. |
| `challenge` | The site asks to verify the account. |
| `action_blocked` | The site refused the action. |
| `invalid_params` | A parameter is wrong. |
| `timeout` | The run reached `maxMinutes`. |

## From an AI agent

The [MCP server](/docs/mcp) has `list_skills`, `run_skills` and `get_job`, so an agent can warm up or post from an account you signed in.