Skip to content

feat(taplio): add Taplio integration - #10576

Open
porenes wants to merge 2 commits into
simstudioai:stagingfrom
porenes:feat/taplio-integration
Open

porenes wants to merge 2 commits into
simstudioai:stagingfrom
porenes:feat/taplio-integration

Conversation

@porenes

@porenes porenes commented Dec 1, 2026

Copy link
Copy Markdown

Summary

Adds a Taplio integration: a taplio block and 32 tools on the public Taplio REST API (https://api.taplio.com/v1, OpenAPI spec at https://api.taplio.com/v1.json). Taplio is a LinkedIn growth platform for creators and B2B teams.

  • Auth: a saved token credential (taplio-service-account), following the Higgsfield pattern. The key is verified at connect time with one read (GET /v1/posts/drafts?limit=1); a bad key gets a 401. Tools take a hidden accessToken and declare credentialKind: 'service-account'; the block uses the oauth-input picker with a manual credential ID in advanced mode, and the service is registered in tokenCredentialIntegrationTypes.
  • Operations: post drafts (create, get, list, update, delete, attach media from a URL), scheduling (schedule, publish now, unschedule), posts (get, list), analytics (account overview, per-post), inspiration search, engagement discovery (curated feeds, posts worth commenting on, comments worth a reply), comment drafts (create, get, list, update, delete, send, cancel), posted comments, likes (like, get, cancel), connection requests (send, get, cancel, list).
  • Every action that reaches LinkedIn is queued by Taplio and stays cancellable until it is sent. Effects are declared per tool: GETs are read, everything else is write.
  • Requests send X-Taplio-Source: sim so we can see usage coming from Sim.
  • Icon: the Taplio mark as currentColor on #3556E6.

Product update (if relevant)

Sim users with a paid Taplio plan can connect their Taplio API key (Taplio > Settings > Integrations) and let agents draft LinkedIn posts for review, keep a content calendar on schedule, prepare comments for approval, and report on post performance. Some actions need a higher Taplio plan; the API returns a clear error when the plan does not cover one.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: ___________

Testing

  • bun run generate, bun run type-check, bun run check:audits, bun run apps/sim/scripts/check-block-registry.ts origin/staging and check-canvas-sentences --block=taplio (32/32) pass.
  • Vitest for blocks, tools, lib/credentials, lib/oauth, lib/integrations: all pass except two tests that also fail on a clean staging checkout on my machine (netsuite.test.ts EC curve, bitbucket/utils.test.ts), unrelated to this change.
  • Live run against the Taplio API with a test account, calling each tool's real request and transformResponse: the credential validator (valid key accepted, invalid key rejected), every read, cursor pagination, a post draft created, updated, given an image, scheduled, unscheduled and deleted, and a comment draft created, updated and deleted, plus 404 paths. Publish Now, Send Comment Draft, Like Post and Send Connection Request were not run, since they act on a real LinkedIn profile.
  • Every output field was checked against live payloads. Posts do not carry metrics in practice, so the post output does not declare them; Get Post Analytics returns them.
  • Happy to provide a Taplio test account for review.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (no unit tests added; verified with the repo gate and a live run, see Testing)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos

Not applicable (new integration block; no changes to existing UI).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

@porenes is attempting to deploy a commit to the Sim Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · Fix the dropped agent status filters before merging.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] Taplio actions reach the LinkedIn accounts of users who connect their credentials.

Fix the dropped agent status filters before merging.

Findings

  1. P1 Agent status filters disappear ▶

Summary

Adds Taplio with 32 tools, saved API-key credentials, a workflow block, SDK names, icons, and documentation.

  • Sim connects a saved Taplio key to a block with 32 API actions.
  • Post drafts can gain media, be scheduled, and be published through Taplio.
  • Agents can read Taplio analytics and find LinkedIn content worth engaging with.
  • Comment drafts can be prepared, sent later, and cancelled before posting.
  • Users can queue LinkedIn likes and connection requests through Taplio.

Reviews (1) · Last reviewed commit: "feat(taplio): add Taplio integration" · Reviewed by Greptile

Comment on lines +507 to +512
status:
operation === 'taplio_list_posts'
? params.postStatus || undefined
: operation === 'taplio_list_comment_drafts'
? params.commentDraftStatus || undefined
: undefined,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Agent status filters disappear

When an agent calls taplio_list_posts or taplio_list_comment_drafts with status, this mapper replaces it with undefined unless the user pinned postStatus or commentDraftStatus. Both tools advertise status to the model, so requests for scheduled posts or pending comments silently return all statuses instead.

Use blockFieldOrToolArg(context, blockValue, params.status) for both filters so the model's value survives when the block field is blank.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed in a4441ce. Both list operations now use blockFieldOrToolArg(context, blockValue, params.status), so an agent's status is kept when the block field is blank, a pinned block value still wins, and a stale value on the canvas is still dropped.

porenes and others added 2 commits December 2, 2026 11:40
Adds a Taplio block and 32 tools on the Taplio REST API (api.taplio.com/v1):
post drafts, media, scheduling and publishing, account and post analytics,
the inspiration library, engagement discovery, comment drafts, likes and
connection requests (queued actions stay cancellable until Taplio sends them).

Auth is a saved token credential (taplio-service-account) verified with a
one-draft list call, following the Higgsfield pattern. Generated artifacts
regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@porenes
porenes force-pushed the feat/taplio-integration branch from a4441ce to e222708 Compare December 2, 2026 10:43

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant