Use CasesChatbots

Case Study: Personalizing Chatbots with Timeseries, Behaviors, and More

Chatbots powered by LLMs are redefining customer service, internal communication, and personalized recommendations across industries. In financial services, pharma, and even other industries, these chatbots can leverage provide more relevant, customized interactions - beyond direct Text-to-SQL querying.

Scenario: An Investment Advisory Chatbot Assists Clients with Portfolio Decisions

  • Uses time-series data to identify spending patterns.
  • Leverages user behavior to suggest savings plans.
  • Integrates business logic to enforce compliance with financial regulations.

Queries might include:

“What’s my portfolio’s performance trend over the last year?”

“Suggest adjustments to reduce volatility while maintaining similar returns.”

Challenges:

  • Dynamic Personalization: Each user’s investment history, risk profile, and interactions form a personal data layer.
  • Temporal Data Understanding: Time-series analysis is needed to interpret trends, volatility shifts, and performance changes over specific periods.
  • Multi-Modal Context: The chatbot should integrate behavior analytics, market conditions, and portfolio constraints into a cohesive response.

Solution:

Knowledge Graphs (KG) & Contextualization: By building a KG enriched with user segments, product categories, and historic interaction patterns, the LLM can provide responses rooted in the individual’s context. When paired with Text-to-SQL capabilities, it can surface data-driven recommendations, filtering queries through the lens of each user’s unique financial journey or, in the case of pharma, clinical patterns relevant to individual practitioners or researchers.

Read more about our approach in our blog where we achieved a great improvement.

chatbots_eval_example_dynamo

A simple example with cognee

chatbot_code_example

Run a Demo Yourself!

Curious about how this works with cognee? Try it out in our notebook here.

Join the Conversation!

Have questions? Join our community now to connect with professionals, share insights, and get your questions answered!