Search by

drupal / comspace

Drupal-Infrastructure

A private home on the web for a company, with an avatar assistant that knows the team, the products and the policies. A Drupal CMS site template.

Package info

git.drupalcode.org/project/comspace.git

Homepage

Issues

Type:drupal-recipe

pkg:composer/drupal/comspace

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

1.0.x-dev 2026-11-30 01:35 UTC

This package is auto-updated.

Last update: 2026-11-30 02:42:35 UTC


README

A private home on the web for a company: its team and departments, products and services, policies and answers to common questions, and the Company assistant, an avatar that helps colleagues find what they need.

A Drupal CMS site template of the Avatar Space family: Family, School, University, Company and Organization Space.

What it gives you

  • News, team members (job title, department), departments, products and services, policies (owner, in effect from, files) and questions with their answers.
  • Topics (a vocabulary) for questions, policies and news: General, People and HR, IT and tools, Finance, Office and facilities, Customers.
  • Pages (the Webpage content type) for anything else the space wants to say, built with Display Builder, and a contact form.
  • Tabs: Dashboard (the front page), News, Team, Departments, Products and services, Policies, Questions.
  • Example content to start from: four departments, five team members, three products and services, four policies, five questions and three news items. Edit them, or delete them and add your own.
  • The Company assistant's chat, docked on the left: things to ask first ("How do I book a day off?"), the topics, quick replies, and a menu to start a new chat or show the panel wide, floating or hidden. They are the chat block's Conversation settings.

Roles

  • Manager: everything, and reviews the assistant's notes.
  • Employee: sees the company's pages and talks to the Company assistant.

Dashboards

Each role has its dashboard, built with Web Dashboard, Webpage and Display Builder. The front page is the dashboard of the person who is logged in, and people land on it after they log in. Each list shows the most pressing items first, with a date, a person or a status, and a link to all of them. Change a dashboard in Structure > Web Dashboards.

  • Administrator: The space at a glance, what they may add, a welcome card, Quick tasks.
  • Content editor: The space at a glance, a welcome card, what they may add.
  • Manager: News, New and updated policies, Team, a welcome card, what they may add.
  • Employee: News, New and updated policies, a welcome card, Questions.

Privacy

The space is private: people who are not signed in are asked to sign in. Everyone logs in to use the space, its avatar and its AI: the chat is shown only to people who are logged in.

Install

With the Drupal CMS installer: choose Company Space among the site templates. Or with Drush, on a Drupal CMS codebase. Until its modules have stable releases, the template comes from its development release, and Drupal CMS takes development releases (prefer-stable keeps the rest stable):

composer config minimum-stability dev
composer require drupal/comspace:1.0.x-dev
drush site:install drupal_cms_installer installer_site_template_form.add_ons=comspace

The site opens in Gin, front and back, in the company's colors and logo, with the toolbar at the top and the Company assistant's chat docked on the left of every page (on a phone, in the page).

The Company assistant

The Company assistant is the face, voice and eyes of the Drupal AI chatbot (DeepChat with the Avatar chat processor of AI Avatar). Its mind is the site's default Drupal AI chat model: choose a provider and a model in Configuration » AI » AI Settings (or pick one on the avatar's page at Structure » Avatars). It answers clearly and briefly, points people to the right policy or person, and refers pay, contracts and personal matters to their manager or the people team.

  • It speaks its answers with a browser voice, listens when the person holds the microphone button, and can see through a camera only when the person turns it on and presses Look; nothing is recorded.
  • It can fly over the page and point at a menu link or a heading it talks about.
  • It keeps short notes about the people it knows; they wait for review at Content » Avatar memories before it uses them, and they expire.

Demo content

The template comes with a small company to try it with: six departments, the team with their jobs, FAQs, policies, products and services, and news.

Test users, with no password: log in as one with drush uli NAME, or set a password first. Delete them, or block them, before the site goes live.

  • Managers: anna.novak, ines.moreau, kenji.watanabe, lucia.fernandez, nadia.karim, ruth.adler
  • Employees: aisha.bello, kenji.sato, marco.bianchi, ravi.patel, sophie.martin, tom.fischer, victor.lee

AI providers

The guide's chat needs one chat provider of Drupal AI. The template brings these with Composer, and installs none of them, so pick one under Extend (or drush en <module>), add its key under Configuration > System > Keys, and choose its models under Configuration > AI > AI Default Settings:

  • amazee.io (ai_provider_amazeeio), the Drupal CMS default
  • Anthropic (ai_provider_anthropic)
  • OpenAI (ai_provider_openai)
  • Google Gemini (gemini_provider)
  • Grok from xAI (grok)
  • A command line tool on the server, such as Claude Code, Codex or Gemini CLI (ai_provider_cli), for a local or private site

The guide's voice

The guide speaks with the ElevenLabs voice "Rajab Natshah - Tech Explainer" (elevenlabs, a text to speech provider of Drupal AI), and moves its mouth with it. Its key is the Key module's elevenlabs key, read from the ELEVENLABS_API_KEY environment variable, so no key is kept in configuration; it must be a key of the ElevenLabs account the voice belongs to. Without a key, or when ElevenLabs fails, the guide speaks with the browser's voice. Change the voice, or turn it off, under Drupal AI voice on the avatar's settings.

Requirements

Drupal CMS 2 (Drupal 11.4 or 12), Drupal AI, Avatar, AI Avatar, Avatar Space, Web Dashboard and Display Builder.

Tests

The webship-js suite in tests/ checks that people log in to use the space, that each role lands on its dashboard, and that the chat answers (with the Echo test model of Drupal AI, from tests/recipes/comspace_test). The CI pipeline builds a fresh Drupal CMS with this template and runs it; to run it on a local site, create an account for each role, set their passwords in the environment (see cucumber.js), then:

yarn install
LAUNCH_URL=https://example.ddev.site yarn test