Embedding chat UI anywhere

Created on 31 July 2024, 5 months ago

Problem/Motivation

It may be convenient embed chat form anywhere in a simple way.
This may even cover every use-case on the drupal frontend.

Steps to reproduce

Proposed resolution

Create a service which returns ajax form to embed.

$aichat_embed = \Drupal::service('aichat.embed');
$aichat_embed->setChatType('default');

$build = [];
$build['chat_form'] = $aichat_embed->getForm();
return $build;

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

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

Comments & Activities

Production build 0.71.5 2024