Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiktok support #128

Open
fakhou opened this issue Jan 17, 2025 · 2 comments
Open

Tiktok support #128

fakhou opened this issue Jan 17, 2025 · 2 comments

Comments

@fakhou
Copy link

fakhou commented Jan 17, 2025

🚀 The feature, motivation and pitch

Right now, the only connection we have set up is with Twitter, using langchain. There's an ongoing review of the Farcaster connection, and I thought it would be cool to add the tiktok connection after talking to @John-peterson-coinbase on discord.

Alternatives

No response

Additional context

No response

@John-peterson-coinbase
Copy link
Contributor

We are open to accepting TikTok social actions. Can you please outline which actions you would like to build and what libraries / APIs you plan to use. (Farcaster issue is a good example #67 (comment))

Thanks! @fakhou

@fakhou
Copy link
Author

fakhou commented Jan 31, 2025

Here's the action plan for integrating TikTok into Coinbase's AgentKit, inspired by the Farcaster integration: @John-peterson-coinbase

TikTok Integration into CDP AgentKit

  1. Create Initial Package Structure

    • Create a tiktok-langchain directory

    • Add essential package files (pyproject.toml, README.md, etc.)

    • Set up necessary GitHub workflows

  2. Add Core TikTok Actions in cdp-agentkit-core

    • Create cdp_agentkit_core/actions/social/tiktok/ directory

    • Implement a base TikTokAction class

    • Add core actions:

      • Post a video

      • Retrieve user details

      • Get a user’s videos

      • Reply to a comment

      • Like a video

  3. Implement TikTok Langchain Extension

    • Develop TikTokApiWrapper to handle TikTok API requests
    • Create a TikTokToolkit class to encapsulate actions
    • Add action wrappers and relevant documentation
  4. Add Tests

    • Write unit tests for core actions
    • Implement integration tests for TikTokToolkit
    • Set up test fixtures and mocks
  5. Documentation

    • Provide usage examples
    • Update the main README.md
    • Add API documentation

Dependencies

  • Python 3.10+
  • TikTok API SDK (or an HTTP client for REST API integration)
  • CDP Agentkit Core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants