v1.30.0 — FAQ items, variables and the questions visitors keep asking

1.30.0Новая функцияDenis Povarov

FAQ items. A new FAQ type holds questions and answers for your own pages, in categories and in every language. kookee.faq.list({ category: 'pricing' }) reads one category with its answers, FaqList from @kookee/react/faq renders it as native <details> that open with no JavaScript, and getFaqJsonLd returns its FAQPage markup. The widget's assistant searches and cites FAQ items too. kookee.faq, FaqList and getFaqJsonLd need version 1.21.0 of @kookee/sdk and @kookee/react, and the four starters show a FAQ on their home page. See Add a FAQ to your site.

Variables. Insert variable in the editor shows a config value inside an entry's body. Change the config, and about ten seconds later every entry that shows it has the new value, in the API, the portal, the widget and the assistant's answers. Sites hear about it through a new config.updated webhook, and through entry.updated when the change rewrites up to 20 published entries. See Show config values in your content with variables.

Questions. Site widget → Questions groups what visitors ask your assistant by meaning, every night, with counts for the last 30 days and whether it found an answer. From a group, write a FAQ item or a help article and connect it with Link to entry, which also takes an entry you already have. A group the assistant answered also has Draft with AI, which drafts a FAQ item and connects it. A connected entry shows the questions from the 30 days before and after it was published. Owners and admins get an email on Mondays when a group got three or more new questions that week. See See which questions visitors keep asking.

Order. A category's page now lists its entries, one language at a time, and you drag help articles and FAQ items there. The order applies to every language. See Set the order of help articles and FAQ items.

A language for each new entry. On a project with more than one language, the form for a new entry or category has a Locale card that sets its language.

MCP. Assistants can now manage configs with list_configs, get_config, create_config, update_config and delete_config, order help articles and FAQ items with move_entry, write FAQ items, and read visitors' questions with list_chat_questions.

Fixed: a link or button to a page of your own site, such as /pricing, opened in a new tab and told search engines not to follow it. It now stays in the same tab without nofollow, and stored entries pick this up the next time they are saved. Fixed too: create_entry dropped the cover image you gave a translation. It now stores it.

Подробнее