Adding Media - rikai-network/docs GitHub Wiki

Adding Article

The bot can send any WeChat article to users. The important detail is that each article needs a unique tag added to it, so the bot knows which article to find. When writing the article, add a tag in double square brackets in your wechat article, like [[news-depression]].

RIKAI’s system finds the article based on the tag name you use and can be sent from script or the chat dashboard like this:

/news news-depression

See full steps below.

  1. On the 微信公众平台, select 素材管理 . adding article
  2. Select 图文消息. Create a new article by clicking on 新建图文素材. adding article
  3. You will see the page below. Fill in the fields and save the article. adding article
  4. Go to the Rikai Dashboard > Media. http://valk.rikai-bots.com/#/media
  5. Click Sync Media. adding article
  6. You have successfully created an article.

Adding Pictures

The bot can send any media that is uploaded to the wechat system. Some important notes: File names should only use lowercase letters and NO SPACES! Change the file names before uploading. Even if you change after uploading, this actually has no effect internally on the wechat system.

  1. On the 微信公众平台, select 素材管理 . adding pictures
  2. Select 图片. adding pictures
  3. Click 上传. Note: File size should not exceed 5M. adding pictures
  4. Upload the picture. Your newly uploaded picture should appear. adding pictures
  5. Go to Rikai Dashboard> Media. http://valk.rikai-bots.com/#/media
  6. Click Sync Media. adding pictures
  7. You have successfully added a new picture.

Adding Audio

Same notes on file names as images - lowercase, no spaces. Note that for wechat backend you can only upload one file at a time… :(

  1. On the 微信公众平台, select 素材管理 . adding audio
  2. Select 语音. adding audio
  3. Click 添加. adding audio
  4. Fill in the fields and upload the audio file. Click 保存. Ensure filename and the title of the audio is the same. Note: Supported formats: mp3, wma, wav, amr. File size should not exceed 30M and audio length should not exceed 30 minutes. adding audio
  5. The audio will appear in the list. adding audio
  6. Go to Rikai Dashboard> Media. http://valk.rikai-bots.com/#/media
  7. Click Sync Media. adding pictures
  8. You have successfully added a new audio file.

Adding URL Cards

URL cards look like articles, but you can link to any external web page, not just wechat articles. So they are more powerful. RIKAI’s system finds the URL card based on the name you use and can be sent from script or the chat dashboard like this:

/card something-cool
  1. Go to the Rikai Dashboard > Cards. http://valk.rikai-bots.com/#/cards
  2. Click on the + button to create a new card. adding url card
  3. Click on the +. adding url card
  4. Fill in the fields adding url card
  5. You have successfully created a URL card.

Up next: QR code