Benevolent AI Agent Interactions

chevron-icon
Back
Top
chevron-icon
project-presentation-img
Kevin R.C.
Project Owner

Benevolent AI Agent Interactions

Expert Rating

n/a
  • Proposal for BGI Nexus 1
  • Funding Request $50,000 USD
  • Funding Pools Beneficial AI Solutions
  • Total 8 Milestones

Overview

We propose to build a framework to enhance human user experience (UX) with AI agents. This framework includes a) agents being more emphatically aligned (or in tune) with human emotions and tone and b) agent personas and responses that are more engaging, welcoming, and wholesome. In order to build this framework, we will explore, research, and synthesize multiple novel AI techniques from both the GenAI-LLM and Neural-Symbolic AI domains. We will test this framework on our existing AI agent characters, including McDolan, demonstrating the agent’s UX improvements with human users. Finally, we will open-source this framework alongside a whitepaper so other devs can use it for their AI agents.

Proposal Description

How Our Project Will Contribute To The Growth Of The Decentralized AI Platform

As agents and agentic systems are the latest industry-wide AI paradigms, with their design patterns incorporated into mass-consumer applications (i.e., chatbots), having a framework that enhances healthy human-agent interactions reduces toxicity and greatly improves the general online well-being and hygiene. This is greatly in line with the BGI mission of developing beneficial AI, especially around instilling human qualities of fundamental/critical technologies like AI agents.

Our Team

Our team is composed of the following members:

  • Kevin R.C.: Project owner, lead data scientist, ML research engineer
  • Daniel S.: Principal research scientist and NLP expert NLP
  • Chibudem B..: Software engineer and UX research
  • CJ L.: AI engineer and library builder

Our team is highly experienced in AI research and service implementation, with a lengthy track history including being awarded for the following services:

  • SYBIL (DF-R2)
  • Onboard NeuralProphet (DF-R2)
  • MAUQ (DF-R3)
  • Deep SYBIL (DF-R4)

AI services (New or Existing)

Generative Language Models

How it will be used

I will use this service to plug into my agent to generate text responses. While testing or demoing our framework using the McDolan agent we can pass the framework's final CoE prompt as the system prompt into this service.

Company Name (if applicable)

Temporai

The core problem we are aiming to solve

The internet and social media can be a toxic place, with harassments, brigadings, and scams abound. As AI agents become more prevalent and human-agent interactions become widely normalized, they can inherit and even multiply this toxicity without proper human-centric guardrails or processes being put in place. Recent GenAI and LLM innovations are focused on improved complex reasoning and logical problem-solving capabilities while reducing computing costs to make them widely accessible (i.e. DeepSeek). However, more priority can be placed on human-centric interactions with agents, making them more wholesome and engaging and less sterile and even harmful.

Our specific solution to this problem

We will develop an open-sourced Python library or SDK that provides a framework for agents to interact more benevolently with humans or even other agents. Any developer can use this library to incorporate their own AI agents.

Our library may contain the following features (and GenAI tools):

  1. Sentiment analysis (NLTK, Spacy, Langchain)

  2. Agent memory/state bank parameters that tune the emotions

    • Personality and emotion parameters (Langchain, Langgraph)

  3. Chain-of-Emotion (CoE) prompts

  • Variant of Chain-of-Thought prompts (Langchain, Langgraph)

  1. Other cognitive or logic-based prompting or retrieval methods outside of LLMs

    • Neural-Symbolic (PyNeuralLogic)

    • Category Theory (Pseudocode written in the prompts)

    • OpenCog Hyperon

    • Other SNET services (MeTTa KG or MAGUS)

After building this library, we will experiment with the framework with our own McDolan agent or other character agents to see which features, or a combination of features, will work best at which interaction points. We will detail the framework architecture and the experiment results in a final whitepaper, which we plan to present at an upcoming AGI or BGI conference or other related events.

Project details

Our framework will leverage a combination of advanced AI techniques, sentiment analysis, and personality modeling to create a dynamic and adaptive conversational system. Although not set in stone, our framework will likely focus on the following key components:

1) Sentiment Analysis and Personality Factors

  • Sentiment Analysis: We will incorporate sentiment analysis to detect the emotional state of the user (e.g., positive, negative, or neutral). This will allow the system to tailor its responses dynamically based on the user’s current mood.

  • Personality Modeling: We will integrate established psychological frameworks such as the Big Five Personality Traits (openness, conscientiousness, extraversion, agreeableness, neuroticism) and MBTI (Myers-Briggs Type Indicator) to simulate diverse user personas. For example, we can manually configure a user profile with high neuroticism or low agreeableness to test how the system adapts to challenging interactions.

 

2) Agent Persistent Memory State that Stores Emotion Parameters

The system is designed to dynamically generate and augment prompts based on the agent's emotional state, leveraging a memory mechanism to provide additional context. Emotional states (e.g., patience, anger, joyfulness) are used as keys to retrieve relevant prompt keywords and/or context vectors from external persistent memory storage. These keywords and/or context vectors are then used to sculpt and enrich the prompts, ensuring that the responses are personalized, context-aware, and emotionally appropriate.  They will then be fed into a chain-of-emotion (CoE) prompt template, which we discuss in the next section.

 

3) Chain-of-Emotion (CoE) Prompting

Chain-of-Emotion (CoE) is a variation of Chain-of-Thought (CoT) prompting, but instead of prompting the LLM's thought process, you prompt in what is the emotional state.

For example, one of the popular CoT prompt templates is ReAct, which prompts LLM to spell out what is its thought, action, observationHere is an example ReAct template from LangSmith.

In the CoE variation of the ReAct template, we can replace the thought component of the prompt with the emotion, specifying its emotional states. This is where we will also plug in the emotional keywords or context vectors as set by the emotion parameters in the agent persistent memory space as mentioned in 2). We will further refine and develop multiple variations of the CoE template, as well as how to best plug-in the emotion parameter values into it.

 

4) Other Cognitive or Logic-Based Methods

The sentiment analysis, personality modeling, and Chain-of-Emotion (CoE) prompting are more from the NLP+LLM branch of AI. In addition to those, we explore other cognitive and logic-based methods that can enhance the effectiveness of bot-to-bot communication, particularly in identifying, escalating, or resolving conflicts. Two such methods include PyNeuralLogic and Category Theory, which can be integrated into the prompt engineering process to improve reasoning, adaptability, and conflict mitigation strategies.

PyNeuralLogic for Logical Inference in Conflict Detection and Resolution

PyNeuralLogic is a framework that integrates symbolic reasoning with neural networks, allowing for robust logical inference within conversational AI. By embedding logical rules into the prompt structure, we can ensure consistency and coherence in bot interactions, particularly in detecting emotional escalation and suggesting de-escalation strategies.

Category Theory for Structural Understanding in Multi-Agent Emotional Dynamics

Category Theory provides a mathematical foundation for understanding relationships between abstract concepts. By applying category-theoretic structures to prompts, we can design a more structured approach to bot communication, ensuring logical flow, emotional consistency, and adaptability in dynamic emotional exchanges.

Incorporation of OpenCog Hyperon-Based Projects

We also plan to incorporate projects from the OpenCog Hyperon ecosystem, such as Scalable MeTTa Knowledge Graphs and Modular Adaptive Goal and Utility System (MAGUS). We can potentially incorporate them into our framework once their library or AI service becomes available.

Integration with Existing Methods

By incorporating PyNeuralLogic and Category Theory into our existing framework, we create a more robust, logically consistent conversational system that can:

  • Detect potential conflicts early using logical rules and neural-symbolic reasoning.
  • Ensure structured, mathematically rigorous emotional transitions in conversations.
  • Adaptively mediate and resolve conflicts in multi-agent interactions.

Through these cognitive and logic-based methods, our project aims to refine bot-to-bot communication, making it more context-aware, self-correcting, and effective in managing emotionally charged interactions.

-----------------------------------------------------------------------------------------------------

While developing and demoing this framework, we will use McDolan and/or our other AI agents to test this framework. We will be like the alpha users of this framework, where we import the library within our internal McDolan code base to test how the library's functionalities will affect McDolan's interactions with us human users or even other AI agents.

Existing resources

We will leverage our in-house AI agent technologies and characters to demonstrate this benevolent AI interaction framework. This includes the AI agent models, processes, architecture, and how they run on P2P platforms (e.g., Telegram, or Discord).

See the Additional video section for a demo of one of our existing AI agent characters McDolan.

Open Source Licensing

Apache License

We will open-source our Benevolent AI Agent framework using Apache License 2.0.

This license will not apply to our existing AI agents, including McDolan, which we have been developing independently.

Links and references

Temporai links

  • Website link
  • GitHub link
  • YouTube link - currently videos are unlisted
  • Telegram link - for you to test out our McDolan AI agent, only for human-agent interactions
  • Discord link -  for you to test out our McDolan and other AI agents, can do both human-agent and agent-agent interactions

Existing projects links

  • SYBIL open-sourced code link + example notebooks link
  • Onboard NeuralProphet open-sourced code link + example notebooks link
  • MAUQ example notebooks link
  • Deep SYBIL example notebooks link 

Additional videos

Here is a YouTube video of me interacting with one of our existing AI agent characters McDolan, on the Telegram platform.

During the review stage, we will post more videos about the additional capabilities of our agents, including making/receiving crypto payments, multi-agent interaction, and more.

This shows that we have hands-on experience with agent interactions. This proposal can help us with making agent interactions more benevolent to humans.

Was there any event, initiative or publication that motivated you to register/submit this proposal?

Physical, in real live event

Describe the particulars.

We are attending the ETHDenver conference, where there is a rapidly growing number of crypto x AI agent side events. This inspired us to build, improve, and showcase our own AI agents and systems.

Proposal Video

Placeholder for Spotlight Day Pitch-presentations. Video's will be added by the DF team when available.

  • Total Milestones

    8

  • Total Budget

    $50,000 USD

  • Last Updated

    24 Feb 2025

Milestone 1 - Contract Sign

Description

Finalize milestone details and sign contract with SNET

Deliverables

- Finalize milestone details - Sign contract with SNET - Assemble team for the development of the Benevolent AI Agent Interactions framework

Budget

$2,000 USD

Success Criterion

Signing of this contract between both SNET and Temporai

Milestone 2 - Framework Design Report

Description

Finalize Benevolent AI Agent Interactions framework design report

Deliverables

- Write up AI agents interactions design report detailing its core features best practices of how to use these features and how it can be applied to the McDolan and other Temporai agents as example use cases - Include the schemas of the open-source framework code including how it can be imported in other code bases - Mention previous research around Human-Agent Interaction (HAI) and how AI personalities affects human engagement

Budget

$6,000 USD

Success Criterion

Submission of the design report as a shared document for the public to see.

Milestone 3 - Sentiment Analysis

Description

Add sentiment analysis features into the framework

Deliverables

- Detect emotions and tone (e.g. positive negative or neutral) from incoming individual user query - Determine personality traits (e.g Big Five and/or MBTI) of the user based on its conversation or series of user queries - Design workflow of how this emotion and personality trait information can be fed into the prompt so the LLM can respond accordingly - Develop first library framework open-sourced code with these sentiment analysis features

Budget

$8,000 USD

Success Criterion

Adding sentiment analysis feature into the source code, as well as examples of how to use it in Python Jupyter Notebooks. Also include a demo video.

Milestone 4 - Emotion Parameters

Description

Add dynamic emotion parameters that are stored in persistent agent memory into the framework

Deliverables

- Specify the full set of possible emotion parameters (e.g. patience anger joyfulness) as well as their range - Specify the keywords or context vectors to map these emotion parameters with - Add emotion parameter features into the source code

Budget

$5,000 USD

Success Criterion

Adding emotion parameters feature into the source code, as well as examples of how to use it in Python Jupyter Notebooks. Also include a demo video.

Milestone 5 - CoE Prompts

Description

Add novel Chain-of-Emotion (CoE) prompting techniques into the framework

Deliverables

- Develop variations of CoE prompt templates starting with derivatives of ReAct or other well-known CoT templates - Include where this emotion parameter can be plugged into these prompt templates - Add CoE template options into the source code

Budget

$7,000 USD

Success Criterion

Adding COE prompting technique into the source code, as well as examples of how to use it in Python Jupyter Notebooks. Also include a demo video.

Milestone 6 - Cognitive and Logic-Based Methods

Description

Add cognitive and/or logic-based methods into the framework

Deliverables

- PyNeuralLogic: implement PyNeuralLogic-based rule constraints to ensure logical consistency in bot-to-bot interactions including logic-driven decision-making rules - Category Theory: implement Functor-based mapping inside the prompt to categorize emotional states and conflict types - Implement alternative cognitive-based architecture (i.e. OpenCog Hyperon Metta Motto) and/or SNET AI service(s) (i.e. MeTTa KG or MAGUS)

Budget

$8,000 USD

Success Criterion

Adding cognitive and/or logic-based methods into the source code, as well as examples of how to use it in Python Jupyter Notebooks. Also include a demo video.

Milestone 7 - McDolan Experimentation and Demo

Description

Experiment and demo the framework on our McDolan or other AI agents

Deliverables

- Test emotion parameters with McDolan agent by inputting these emotion parameters into McDolan's persistent memory state and have McDolan mention or log about these parameters - Test CoE templates with McDolan agent to see how its personality and emotion get affected with the inclusion of these dynamic CoE templates - Test sentiment analysis by using them to update the final CoE prompt before passing the prompt to McDolan - Test alternative cognitive or logic-based methods by using them to update the final CoE prompt (similar workflow to that of sentiment analysis)

Budget

$4,000 USD

Success Criterion

Demo videos showcasing different framework features with McDolan or our other AI agents, running on platforms such as Telegram or Discord

Milestone 8 - Whitepaper and Presentation

Description

Finalize the Benevolent AI Agent Interactions framework whitepaper and present that at a conference or event

Deliverables

- Publishing the whitepaper on either a public channel (i.e. arXiv) or a conference (AGI/BGI Summit) - Do a presentation about the framework at either a conference (AGI/BGI Summit) or virtual event (i.e. TownHall)

Budget

$10,000 USD

Success Criterion

Publishing the whitepaper with a URL link and presenting with a presentation recording

Join the Discussion (0)

Expert Ratings

Reviews & Ratings

    No Reviews Avaliable

    Check back later by refreshing the page.

feedback_icon