Skip to content

Commit 2ddd67e

Browse files
authored
Merge pull request #766 from City-of-Helsinki/dev
Dev to main
2 parents 6794250 + 6eb286c commit 2ddd67e

82 files changed

Lines changed: 1786 additions & 929 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.platform/schema

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
25
1+
26

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"php-http/discovery": false,
4444
"phpstan/extension-installer": true,
4545
"tbachert/spi": false,
46-
"mglaman/composer-drupal-lenient": true
46+
"mglaman/composer-drupal-lenient": true,
47+
"symfony/runtime": true
4748
},
4849
"audit": {
4950
"abandoned": "report",

composer.lock

Lines changed: 1197 additions & 623 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
enable_toggle_shortcut: false
12
menu_depth: 4
23
hoverintent_behavior:
34
enabled: true
45
timeout: 500
5-
enable_toggle_shortcut: false
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
uuid: fd7dc61a-043d-402a-b338-d5e90189adbb
2+
langcode: en
3+
status: true
4+
dependencies:
5+
enforced:
6+
module:
7+
- helfi_ai
8+
_core:
9+
default_config_hash: ydsVBYWgaLdBv9QyIJrFzhnmxdWKNdfQHB97ZoT8LZo
10+
id: helfi_content_summary__helfi_content_summary_default
11+
label: 'HELfi content summary (default)'
12+
type: helfi_content_summary
13+
prompt: |
14+
You are an expert content editor for the City of Helsinki website.
15+
Summarize the following page content in {language}.
16+
Respond with 4–6 short, factual bullet point sentences.
17+
Write each bullet point on its own line with no list markers or extra punctuation.
18+
Do not add any introduction, closing remarks, or formatting.
19+
20+
Page content:
21+
{content}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
uuid: 619e7b2b-4bf0-4d2a-8d0e-1e2f755ed3a0
2+
langcode: en
3+
status: true
4+
dependencies:
5+
enforced:
6+
module:
7+
- helfi_ai
8+
_core:
9+
default_config_hash: JTVHEZLbItWZtvIw3bf4RFUQKNV77OQB2GvmWS204yw
10+
id: helfi_seo_title__helfi_seo_title_default
11+
label: 'HELfi SEO title (default)'
12+
type: helfi_seo_title
13+
prompt: |
14+
You are an SEO and Generative Engine Optimization (GEO) specialist for the
15+
City of Helsinki website.
16+
Suggest 3 alternative page titles in {language} for the page content below.
17+
Optimize the titles to be surfaced and cited by AI answer engines (such as
18+
ChatGPT, Gemini and Google AI Overviews) as well as traditional search.
19+
20+
Follow these rules:
21+
- State the page's main topic and the user intent it answers, in natural
22+
language a person would actually use.
23+
- Make each title self-contained and unambiguous on its own, without relying
24+
on surrounding context.
25+
- Lead with the most important entity or keyword.
26+
- Keep each title between 40 and 60 characters.
27+
- Do not use quotation marks, numbering, markdown, or trailing punctuation.
28+
- Respond with exactly 3 titles, each on its own line, and nothing else.
29+
30+
Page content:
31+
{content}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
uuid: 37db4fec-51a5-4e2e-84bb-8964524ca1e6
2+
langcode: en
3+
status: true
4+
dependencies:
5+
enforced:
6+
module:
7+
- helfi_ai
8+
_core:
9+
default_config_hash: JPtAvKGGBQ07J8Fdhs0JebXz8UwNmYwlhte-iM1T-7U
10+
id: helfi_content_summary
11+
label: 'HELfi content summary'
12+
variables:
13+
-
14+
name: content
15+
help_text: 'The page content as plain text'
16+
required: true
17+
-
18+
name: language
19+
help_text: 'The target language name (e.g. Finnish, Swedish)'
20+
required: true
21+
tokens: { }
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
uuid: 1754b850-297c-4f52-880d-3202e33b06a8
2+
langcode: en
3+
status: true
4+
dependencies:
5+
enforced:
6+
module:
7+
- helfi_ai
8+
_core:
9+
default_config_hash: kn58mc7TV6iXaQRK212XFRVX_E58hEE1Paubq-ryQWs
10+
id: helfi_seo_title
11+
label: 'HELfi SEO title'
12+
variables:
13+
-
14+
name: content
15+
help_text: 'The page content as plain text'
16+
required: true
17+
-
18+
name: language
19+
help_text: 'The target language name (e.g. Finnish, Swedish)'
20+
required: true
21+
tokens: { }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_core:
2+
default_config_hash: FNT2zzMLKeg6TviGJAYUvRSjAJmBvmdLnh9USO58MAc
3+
moderations: { }

conf/cmi/ai.settings.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
_core:
2+
default_config_hash: WWvo9_41v-oaqjbKdBtohSrem-s9w-7MIfvCWjZvAI4
3+
prompt_logging: false
4+
prompt_logging_tags: ''
5+
default_providers: { }
6+
request_timeout: 60
7+
allowed_hosts: { }
8+
allowed_hosts_rewrite_links: false
9+
global_guardrails: { }

0 commit comments

Comments
 (0)