sensay

n8n nodes to interact with Sensay API

Package Information

Downloads: 0 weekly / 3 monthly
Latest Version: 0.1.0
Author: Sensay Team

Documentation

n8n-nodes-sensay

This is an n8n community node package that allows you to interact with the Sensay API. It provides nodes to manage replicas (virtual assistants), their knowledge base, chat completions, and chat history.

Prerequisites

  • n8n v1.0+
  • Sensay API Key

Installation

Community Nodes (Recommended Setup)

For users unfamiliar with Node.js:

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Select Install
  4. Enter n8n-nodes-sensay in the Enter npm package name field
  5. Agree to the risks of using community nodes and click Install

Manual Installation

If you wish to install this package manually:

cd YOUR_N8N_FOLDER
npm install n8n-nodes-sensay

Configuration

  1. In your n8n instance, go to Credentials > New
  2. Search for "Sensay API" in the credential type dropdown
  3. Enter your Sensay API key
  4. Click "Save"

Features

This package includes the following functionality:

Replica (Virtual Assistant) Management

  • Get Many Replicas: List and filter available replicas
  • Create Replica: Create a new replica with customizable name, description, and greeting

Knowledge Base Management

  • Create Knowledge Base Entry: Add new training content to a replica
  • Update Knowledge Base Entry: Modify existing training content
  • Get Knowledge Base Entry: Retrieve a specific training item
  • Get Many Knowledge Base Entries: List and filter training items
  • Delete Knowledge Base Entry: Remove training items

Chat Completions

  • Complete: Generate chat responses with your replica

Chat History (Web Platform)

  • Get Chat History: Retrieve conversation history
  • Create Chat History: Add new messages to the chat history

Example Workflows

Create a Replica and Train It

  1. Start with a "Sensay" node
  2. Select "Replica" as the resource and "Create" as the operation
  3. Enter a name and description for your replica
  4. Use the UUID from the response in a subsequent "Sensay" node
  5. Select "Training" as the resource and "Create" as the operation
  6. Add your training content

Chat with a Replica

  1. Start with a "Sensay" node
  2. Select "Chat" as the resource and "Complete" as the operation
  3. Enter your replica UUID and the messages array
  4. Process the response

Resources

License

MIT

Discussion