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

[FEATURE REQUEST] - Integrate YouTube Video Transcription Tools with KaibanJS #195

Open
darielnoel opened this issue Jan 10, 2025 · 0 comments
Labels
community Issues focused on community engagement and participation. feature New feature or request integrations Adding support for third-party tools, agents, or services tools

Comments

@darielnoel
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently, there is no native way to leverage YouTube video content as part of KaibanJS workflows. Integrating a transcription tool would allow agents to process and utilize YouTube video data effectively, enhancing content generation and analysis capabilities.

Describe the solution you'd like
Integrate the youtube-transcript library as a tool in KaibanJS. This library enables fetching transcripts from YouTube videos without requiring API keys, making it lightweight and easy to use. KaibanJS agents could use this tool to fetch and analyze transcripts for tasks such as summarization, keyword extraction, or generating related content.

Describe alternatives you've considered

  1. Developers manually integrating the youtube-transcript library into their own KaibanJS projects, which lacks seamless integration.
  2. Using the YouTube API for transcription, which requires API keys and additional configuration steps.

Additional context
Here is a working example using the youtube-transcript library in CommonJS:

const { YoutubeTranscript } = require('youtube-transcript');
const { writeFile } = require('fs');

(async () => {
  try {
    const transcript = await YoutubeTranscript.fetchTranscript('https://www.youtube.com/watch?v=aImrjNPrh30');
    const transcriptData = JSON.stringify(transcript, null, 2);
    console.log(transcript);

    writeFile('transcript.json', transcriptData, (err) => {
      if (err) throw err;
      console.log('Transcript data has been saved to transcript.json');
    });
  } catch (error) {
    console.error('Error fetching or storing the transcript:', error);
  }
})();

This integration would open up opportunities for agents to analyze YouTube content for applications like automated content creation, sentiment analysis, and more.

Link to the working example on Gist:
Example Script by Aitorroma

@darielnoel darielnoel added feature New feature or request community Issues focused on community engagement and participation. integrations Adding support for third-party tools, agents, or services tools labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues focused on community engagement and participation. feature New feature or request integrations Adding support for third-party tools, agents, or services tools
Projects
None yet
Development

No branches or pull requests

1 participant