24haowan · For AI中文

Let your AI run campaigns

Create a campaign on 24haowan, configure prizes, publish it and read the numbers — from your own client or script

Who it is forDevelopers and agencies building on top of an existing paid 24haowan merchant account

What it can do for you

Listed by task; each one shows which way of connecting it needs.

  • Create from a templatePick a template, or duplicate a past campaign and adjust itDeveloper token
  • Edit settings and prizesChange name, dates, rules, game settings, prizes and stockDeveloper token
  • Check, publish, shareRun the pre-publish check, publish, and get the share linkDeveloper token
  • Read the numbersHow many people came and how they took partDeveloper token
  • A free account can only read (list campaigns, view data); creating, editing and publishing need a paid plan.
  • Nothing that moves money is exposed to AI: prizes, stock and redemption codes can be configured, but awarding a prize to a player, sending red packets or paying is not possible.

Say this to it

  • List the campaigns I created this month — which ones are not published yet?

4 ways to connect, easiest first

Pick one to see the steps.

  1. ① Copy a promptNot offered here
  2. ② Connect, no signupNot offered here
  3. ③ Sign inNot offered here

Paid merchants generate an API token in their account and plug it into their own AI or script

With Claude Code / Cursor / MCP:

  1. In the 24haowan console, go to Account → API Token and generate a token starting with sk-hw- (paid merchants)
  2. Claude Code: run this, replacing the token with yours
    claude mcp add --transport http 24haowan-merchant https://agent.24haowan.com/mcp \
      --header "Authorization: Bearer sk-hw-…"
  3. In Cursor, add this to ~/.cursor/mcp.json (or the project's .cursor/mcp.json), with the same Authorization header (written from the vendor docs; not yet tested on a real client)
    {
      "mcpServers": {
        "24haowan-merchant": {
          "url": "https://agent.24haowan.com/mcp",
          "headers": {
            "Authorization": "Bearer sk-hw-…"
          }
        }
      }
    }
  4. Then say:List the campaigns I created this month — which ones are not published yet?

The other three: Look things up · Publish work · Make calls
← Back to For AI