The prompt
Paste it into your agent and replace the parts in angle brackets. The agent needs SocialTap: connect it with the MCP server or an API key.
Add view tracking to <my clipping or creator campaign platform>, so each payout is worked out from the views of the videos clippers submit.
When a clipper submits a link, fetch the video and store its author, publish date and views. Reject a link whose account isn't the clipper's, or that was published before <campaign start>. Then fetch every video in a live campaign again every <how often>, and store a dated reading each time.
Work out each clipper's payout from the views gained during the campaign at <rate>. Show them the readings it rests on, and hold back a video whose views jump in a way worth a look.
A video that comes back deleted or private stays at its last reading and is marked for review, and a view count that comes back null means unknown: never pay on it as if it were zero.
Get the data from SocialTap. If the SocialTap MCP server is connected, use its tools; otherwise call the REST API at https://socialtap.dev with the API key from the SOCIALTAP_API_KEY environment variable in the x-api-key header. Read https://socialtap.dev/docs/agents/index.md before the first call. The endpoints, by ID:
- tiktok.post: GET /v1/tiktok/post, TikTok Post API. Docs: https://socialtap.dev/docs/reference/tiktok/post/index.md
- instagram.post: GET /v1/instagram/post, Instagram Post API. Docs: https://socialtap.dev/docs/reference/instagram/post/index.md
- youtube.post: GET /v1/youtube/post, YouTube Video API. Docs: https://socialtap.dev/docs/reference/youtube/post/index.md
- facebook.post: GET /v1/facebook/post, Facebook Post API. Docs: https://socialtap.dev/docs/reference/facebook/post/index.md
- rumble.post: GET /v1/rumble/post, Rumble Video API. Docs: https://socialtap.dev/docs/reference/rumble/post/index.mdEndpoints it uses
- TikTok · Post
tiktok.postTry it - Instagram · Post
instagram.postTry it - YouTube · Video
youtube.postTry it - Facebook · Post
facebook.postTry it - Rumble · Video
rumble.postTry it