In ResponseCX, a Source is a location where your Agents can retrieve information to answer user questions. A source can be a website, a document, or a knowledge base. By providing sources, you can equip your agents with the specific knowledge they need to be effective.
Here’s how to create a source using the Node.js SDK.
Copy
Ask AI
// The 'stateset' object should be initialized with your API key.// Please refer to the official Stateset SDK documentation for initialization details.// For example:// const stateset = new Stateset({ apiKey: "YOUR_API_KEY" });const source = await stateset.sources.create({ name: "My API-created Source", description: "Documentation website.", type: "Website", uri: "https://docs.example.com",});console.log("Source created:", source);