Skip to content

Conversation

@brenzi
Copy link
Collaborator

@brenzi brenzi commented Jun 3, 2025

A quick demo for an AI chatbot in Incongitee using ChatGPT

Motivation: enhance privacy when using AI

features:

  • pay-per-use anonymous payment for each prompt. keeps context within the same conversation (each Incognitee account can have one conversation for now)
  • caveat: as neither ChatGPT nor our chatbot service are private, both Integritee and OpenAi can see plaintext prompts and responses. the just can't easily link that to an identity.

create a .env file in the working dir to configute ChatGPT:

OPENAI_API_KEY=*********************************
OPENAI_SYSTEM_BRIEFING="Keep responses under 200 characters. You never make up facts. If unsure, respond with 'I don't know'"
OPENAI_MODEL=gpt-4.1-mini

the system briefing is for prompt engineering

run with

 export RUST_LOG=trace,substrate_api_client=warn,ws=warn,mio=warn,ac_node_api=warn,sp_io=warn,sp_io::storage=error,tungstenite=warn,rustls=info,soketto=info,itc_tls_websocket_server=info,itc_rpc_client=warn,integritee_cli::trusted_command_utils=error,integritee_cli::command_utils=error,reqwest=error,tracing=error,warp=error,hyper=error,integritee_cli::trusted_operation=warn
 ./integritee-cli -U wss://scv1.asset-hub-paseo.api.incognitee.io -P 443 trusted --shard 5wePd1LYa5M49ghwgZXs55cepKbJKhj5xfzQGfPeMS7i --direct chatbot <BOT_ACCOUNT>

then, open try.incognitee.io and start a conversation with <BOT_ACCOUNT>

@brenzi brenzi added A1-cli Affects cli functionalites B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing labels Jun 3, 2025
@brenzi brenzi changed the title Ab/ai chat Chatbot Jun 3, 2025
@brenzi brenzi requested a review from clangenb June 3, 2025 15:53
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only had a rough overview, but it looks good and interesting so far.

@brenzi brenzi merged commit 6809b0f into master Jun 7, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A1-cli Affects cli functionalites B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants