localgovdrupal / localgov_netcall

Drupal module for Netcall Low-code platform integration.
0 stars 1 forks source link

Creates AI Widget sub module #2

Closed markconroy closed 2 months ago

markconroy commented 3 months ago

Closes #1


  1. Settings page at /admin/config/services/netcall/ai-widget
  2. Field for "workspace id"
  3. Field for "partition id"
  4. Field for "partition overrides

Settings page

Go to the settings page to fill out your settings. Remember, these will become part of your site's config, so if you change these you need a developer to export your config so they are not wiped the next time a deployment happens.

Field for workspace id

Put the workspace id in here. It becomes site config, so a developer will be needed to capture that.

Field for partition id

Put the partition id in here. It becomes site config, so a developer will be needed to capture that.

Good to go

This will be enough for most sites, if they only have one ai widget.

Field for partition overrides

If you want to override what widget is show on what page you can add a list of different partition ids and paths to this field, in the format of partition_id|path (such as par123abc|news for par123abc to appear on the news page, but the default ai widget to appear everywhere else).

If you want a different widget to appear on a section of pages, such as all the items inside /news put a * at the end of your path like so: par123abc|news/*

Screenshot 2024-08-05 at 13 10 11


Thanks to Big Blue Door for sponsoring my time to work on this.

markconroy commented 3 months ago

@willguv I think this module is ready for testing/feedback now.

Adnan-cds commented 2 months ago

Hi Mark, Code changes look good. I am just trying to test this new module. I will get back to you by the end of the day.

finnlewis commented 2 months ago

@Adnan-cds is happy, but not been able to test fully yet.

Happy to merge, and follow up if needed.