Alter PreGenerateResponseEvent response

Created on 13 February 2025, 9 days ago

Problem/Motivation

Hi all,
it would be interesting to have the possibility to modify the flow of the chat managed by AI Assistant to interrupt the standard response flow.

Talking with marcus_johansson on Slack I gave the example of allowing the user to ask only n questions to the chatbot, and then start returning a fixed answer with a link to a page.
Or, after n unanswered questions (which we can probably verify via postResponse EventSubscriber) always return a message like "we suggest you contact us via the Contacts page".

Marcus proposed to add that as a possibility to the PreGenerateResponseEvent for it to work

I think it's an interesting implementation and that it could be useful to others too

API changes

Alter the PreGenerateResponseEvent to support the modify of the stream

Feature request
Status

Active

Version

1.0

Component

AI Assistants API

Created by

🇮🇹Italy g.rocchini

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024