Create YouTube Channel Feed
User Intent
"How do I sync YouTube videos and transcripts? Show me YouTube feed configuration."
Operation
SDK Method: createFeed() with FeedTypes.YouTube
Auth: API key
Code Example (TypeScript)
import { Graphlit } from 'graphlit-client';
import { FeedTypes, YouTubeTypes } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const feed = await graphlit.createFeed({
name: 'Tech Channel',
type: FeedTypes.YouTube,
youtube: {
type: YouTubeTypes.Channel,
channelIdentifier: 'UC_x5XG1OV2P6uZZ5FSM9Ttw',
readLimit: 50,
},
// Optional: add workflow for content processing
// workflow: { id: workflow.createWorkflow.id }
});Configuration
channelId: YouTube channel ID includeTranscripts: Sync video transcripts readLimit: Number of videos
Last updated
Was this helpful?