AI Chat

Enables building AI chat pipelines using N2’s graph-based workflows. It lets you define conversational logic, context handling, AI model calls, and responses as interconnected nodes, making chat systems visual, modular, and easy to integrate with other N2 modules.

Dependencies

This module depends on the following modules *:

  • ai_chat_base
  • n2_ai

*Built-in modules not listed

AiAgentNode

The AI Chat module extends the AiAgentNode to accomodate chat features: streaming chats and chat state management.

Parameters

  • name Raw Inherited
  • system_message Raw Inherited
  • prompt Tmpl Inherited
  • is_html_result Raw Inherited
  • is_structured Raw Inherited
  • schema Raw Inherited
  • is_streaming Raw
  • is_stateful Raw

AiChatResponderNode

This node is responsible to send responses from AiAgentNode to the frontend.

ManualResponseNode

Use this node to create manual or templated responses.

Parameters

  • message Tmpl

OnAiChatMessageTriggerNode

This node is to mark the graph as an AI Chat workflow. It also provide an interface to test the chat workflow.