mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
⚡️ Improve group title gen default prompt and add docs
This commit is contained in:
parent
b7a8a9ed5a
commit
983f71c0a9
@ -2,11 +2,10 @@ import { isWriteTypebotForbidden } from "@/features/typebot/helpers/isWriteTypeb
|
||||
import { authenticatedProcedure } from "@/helpers/server/trpc";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { decrypt } from "@typebot.io/credentials/decrypt";
|
||||
import { getCredentials } from "@typebot.io/credentials/getCredentials";
|
||||
import { forgedBlocks } from "@typebot.io/forge-repository/definitions";
|
||||
import prisma from "@typebot.io/prisma";
|
||||
import { defaultGroupTitleGenPrompt } from "@typebot.io/schemas/features/user/constants";
|
||||
import { groupTitlesAutoGenerationSchema } from "@typebot.io/schemas/features/user/schema";
|
||||
import { defaultGroupTitleGenPrompt } from "@typebot.io/workspaces/constants";
|
||||
import { z } from "@typebot.io/zod";
|
||||
import { generateObject } from "ai";
|
||||
|
||||
|
||||
@ -11,8 +11,8 @@ import { HStack, Stack } from "@chakra-ui/react";
|
||||
import type { BlockV6 } from "@typebot.io/blocks-core/schemas/schema";
|
||||
import type { Credentials } from "@typebot.io/credentials/schemas";
|
||||
import { forgedBlocks } from "@typebot.io/forge-repository/definitions";
|
||||
import { defaultGroupTitleGenPrompt } from "@typebot.io/schemas/features/user/constants";
|
||||
import type { GroupTitlesAutoGeneration } from "@typebot.io/schemas/features/user/schema";
|
||||
import { defaultGroupTitleGenPrompt } from "@typebot.io/workspaces/constants";
|
||||
import { useState } from "react";
|
||||
|
||||
type Props = {
|
||||
|
||||
@ -3,6 +3,8 @@ title: User preferences
|
||||
icon: 'user'
|
||||
---
|
||||
|
||||
import { YoutubeVideo } from '/snippets/youtube-video.mdx'
|
||||
|
||||
## Change language
|
||||
|
||||
You can change the language of the application by going to your `Settings & Members` menu under the `Preferences` tab.
|
||||
@ -16,3 +18,17 @@ You can change the language of the application by going to your `Settings & Memb
|
||||
<Frame>
|
||||
<img src="/images/workspace/change-language.png" alt="Change language" />
|
||||
</Frame>
|
||||
|
||||
## Generate groups title with AI
|
||||
|
||||
You can automatically have your group titles generated with AI by going to your `Settings & Members` menu under the `Preferences` tab.
|
||||
|
||||
Here you'll have to configure your AI provider.
|
||||
|
||||
<Info>
|
||||
If you don't see your provider credentials listed that's because you don't have it in your personal user credentials. [See distinction between worksapce and user credentials.](./credentials)
|
||||
</Info>
|
||||
|
||||
Once enabled and properly configured, you'll see default group titles (starting with "Group #") changing whenever you connect a new group/block from this group.
|
||||
|
||||
<YoutubeVideo id="Lt7UliKv0xQ" />
|
||||
|
||||
@ -1 +1,6 @@
|
||||
export const graphGestureNotficationKey = "graphGestureNotification";
|
||||
|
||||
export const defaultGroupTitleGenPrompt = `I have a group of blocks that is part of my "[[typebotName]]" chatbot. Generate a short and concise title for that group. 2 words at most. Most of the time we are collecting a specific data. Be specific. For example: "Collect name", "Menu", "Goodbye". Here is the group content:
|
||||
|
||||
[[groupContent]]
|
||||
`;
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
export const defaultGroupTitleGenPrompt = `I have a group of blocks that is part of my "[[typebotName]]" chatbot. Generate a short and concise title for that group. For example: "Introduction", "Menu", "Goodbye", "Collect name". Here is the group content:
|
||||
|
||||
[[groupContent]]
|
||||
`;
|
||||
Loading…
Reference in New Issue
Block a user