dimagi / open-chat-studio

A web based platform for building Chatbots backed by Large Language Models
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

Create system tags & record system tag message when using to multi-prompt bot #440

Closed stephherbers closed 1 week ago

stephherbers commented 3 weeks ago

Creates a new the of tag called a "System Tag" that is when a tag is created and added automatically and without a user

What's unique:

Example session with a multi-prompt bot:

Screenshot 2024-06-10 at 10 22 28 AM

Resulting tags added:

Screenshot 2024-06-10 at 10 23 11 AM

Example of the "Select a Tag..." multi-select where the system tags are shown, but cannot be added by user

Screenshot 2024-06-10 at 11 11 03 AM
SmittieC commented 3 weeks ago

I like these changes! We can now easily use these changes to tackle this ticket. General thoughts:

~I'm starting to wonder if we shouldn't make system tags even more distinguised. Maybe by prefixing system tags with "system:". This way, we should only disallow users to create tags prefixed with "system:". Thoughts?~

Update

I chatted with @snopoke and a few things came up:

@snopoke I think this is everything we covered

stephherbers commented 3 weeks ago

thanks for the feedback everyone. Main design changes implemented today:

stephherbers commented 1 week ago

leaving the remain unblocking comments to a separate PR since this one is already very big 👍

sentry-io[bot] commented 1 week ago

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎