Create RSS/Podcast Feed
User Intent
Operation
TypeScript (Canonical)
import { Graphlit } from 'graphlit-client';
import { ContentTypes, FeedTypes } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const response = await graphlit.createFeed({
name: 'Tech News RSS',
type: FeedTypes.Rss,
rss: {
uri: 'https://news.example.com/rss.xml',
readLimit: 100,
},
});
const feedId = response.createFeed.id;
console.log(`RSS feed created: ${feedId}`);
while (true) {
const status = await graphlit.isFeedDone(feedId);
if (status.isFeedDone.result) {
break;
}
console.log('Still syncing RSS items...');
await new Promise((resolve) => setTimeout(resolve, 10_000));
}
console.log('RSS feed sync complete!');
const items = await graphlit.queryContents({
feeds: [{ id: feedId }],
types: [ContentTypes.Page],
});
console.log(`Synced ${items.contents.results.length} RSS items`);Parameters
FeedInput (Required)
RSSFeedPropertiesInput (Required)
Optional
Response
Developer Hints
RSS vs Podcast Feeds
Read Limit Strategy
Content Type for RSS Items
Podcast Transcription
Variations
1. Basic RSS Feed
2. Podcast Feed with Transcription
3. RSS with Auto-Collection
4. Multiple RSS Feeds
5. RSS with Entity Extraction
6. Limited Backfill Feed
Common Issues
Production Example
Last updated