Real Simple Syndication
Retrieve multiple RSS feeds and return a merged array of items sorted by date See documentation
Generate embeddings using Google PaLM. See the docs here
The RSS app allows users to automatically fetch and parse updates from web feeds. This functionality is pivotal for staying abreast of content changes or updates from websites, blogs, and news outlets that offer RSS feeds. With Pipedream, you can harness the RSS API to trigger workflows that enable a broad range of automations, like content aggregation, monitoring for specific keywords, notifications, and data synchronization across platforms.
module.exports = defineComponent({
props: {
rss: {
type: "app",
app: "rss",
}
},
async run({steps, $}) {
// Retrieve items from a sample feed
const Parser = require('rss-parser');
const parser = new Parser();
const stories = []
// Replace with your feed URL
const url = "https://pipedream.com/community/latest.rss"
const feed = await parser.parseURL(url);
const { title, items } = feed
this.title = title
if (!items.length) {
$end("No new stories")
}
this.items = items
},
})
The Google PaLM API is a cutting-edge language model that allows developers to integrate advanced natural language understanding into their applications. On Pipedream, you can harness this power to create serverless workflows that react to various triggers and perform actions based on the insights and outputs from PaLM. Whether it's generating content, summarizing text, or understanding user intent, PaLM's capabilities can be integrated into Pipedream workflows to automate complex tasks involving language.
import { v1beta2 } from "@google-ai/generativelanguage";
import { GoogleAuth } from "google-auth-library";
export default defineComponent({
props: {
google_palm_api: {
type: "app",
app: "google_palm_api",
}
},
async run({ steps, $ }) {
const client = new v1beta2.TextServiceClient({
authClient: new GoogleAuth().fromAPIKey(this.google_palm_api.$auth.palm_api_key),
});
const text = "Repeat after me: one, two,";
const model = "models/text-bison-001";
return await client
.generateText({
model,
prompt: {
text,
},
})
},
})