Conversational ai design

From ils15/pantheon-legacy · View interactive version

Conversational ai design is an AI agent skill from the GitHub repository ils15/pantheon-legacy. Design conversational AI with Rasa NLU, dialogue management, and LangChain memory patterns.

How to use this skill

Skill file

Conversational AI Design

Design conversational AI systems with Rasa 3.x NLU pipelines, dialogue management, and LLM-based chatbot patterns.


Rasa NLU Pipeline

Configuration

language: en
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100

Intent & Entity Design


Dialogue Management

Policy Stack

policies:
  - name: RulePolicy          # Handle explicit rules
  - name: TEDPolicy           # ML-based dialogue
    epochs: 100
  - name: MemoizationPolicy   # Exact conversation matches
    max_history: 5

Conversation Patterns


LLM Chatbot Patterns (LangChain)

Conversational Memory

from langchain.memory import ConversationBufferMemory

memory = ConversationBufferMemory(
    memory_key="chat_history",
    return_messages=True,
    max_token_limit=2000
)

RAG for Chatbots

from langchain.chains import RetrievalQA

qa_chain = RetrievalQA.from_chain_type(
    llm=llm,
    retriever=vector_store.as_retriever(),
    chain_type="stuff",
    memory=memory
)

Best Practices


Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.