Skip to content

Copilot mode: add functions to programmatically open and close chatbot window #2579

@diehmniklas

Description

@diehmniklas

Is your feature request related to a problem? Please describe.
Right now, you can toggle the copilot window by using the function toggleChainlitCopilot. This was part of #1638 . This is useful, however, it would be better if you could also programmatically open and close the window. Especially, you could open the chat after X seconds without disturbing users which already opened the chatbot.

Describe the solution you'd like
I would add two new function: openChainlitCopilot and closeChainlitCopilot. They would be implemented in a similar way like the already existing function toggleChainlitCopilot is implemented.

Describe alternatives you've considered
Right now, I don't see alternatives except for not added the features.

Additional context
I think the effort is manageable, so I can work on that feature if it is approved.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions