Support multiple chatbots on a page
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3530864. --> Reported by: [lpeabody](https://www.drupal.org/user/1137356) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I am currently wanting to build a "showroom" of sorts so prospective buyers of a chatbot solution can interact with multiple chatbots at once, with the primary difference being the model that drives each of the assistants.</p> <p>Currently, it looks like message history is shared by all chatbots. When I ask a question to one bot, I get a response. When I ask the same question to the next bot on the page, it responds with something like "I've already answered that question, so I will repeat the answer." Each chatbot should have its own, unique message history.</p> <p>After reviewing the code a bit, it looks like there several places that need attention to afford unique message histories per-chatbot. The question I think needs answering is - what makes a chatbot unique?</p> <p>My initial thought is the ID of the assistant being used. Reason being, each block must select a single assistant. That block puts a single chatbot on the page, linked to that assistant. That of course presents the possibility of the same assistant being placed on the page in different blocks... So, another possibility could be to use the ID of the block that houses the assistant chatbot.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue