Skip to main content

Multiple messages

The intelliNode chatbot framework allows for a conversation-like flow with multiple messages.

Example

const { Chatbot, ChatGPTInput } = require('intellinode');

const input = new ChatGPTInput('You are an insightful assistant.');

input.addUserMessage("What's the gist of the Inception movie?");
input.addAssistantMessage("It's about a thief who enters the dreams of others to steal secrets and implant an idea.");
input.addUserMessage("And what about The Dark Knight?");