From fdbd9c08a3c9e41ae4b9a0a7968be7caa75bc430 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 10 Jun 2024 17:46:29 +0200 Subject: [PATCH] :pencil: Add Transcript doc --- .../docs/editor/blocks/logic/set-variable.mdx | 8 +++++++ apps/docs/snippets/loom-video.mdx | 1 + apps/docs/snippets/youtube-video.mdx | 22 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 apps/docs/snippets/youtube-video.mdx diff --git a/apps/docs/editor/blocks/logic/set-variable.mdx b/apps/docs/editor/blocks/logic/set-variable.mdx index b0e539327..2d20defc9 100644 --- a/apps/docs/editor/blocks/logic/set-variable.mdx +++ b/apps/docs/editor/blocks/logic/set-variable.mdx @@ -3,6 +3,8 @@ title: Set variable icon: pen --- +import { YoutubeVideo } from '/snippets/youtube-video.mdx' + The "Set variable" block allows you to set a particular value to a variable. @@ -126,6 +128,12 @@ This value block allows you to find the `Id` from `Ids` with the same index as ` /> +## Transcript + +This preset value will save the entire conversation transcript in a variable. It is super useful to provide context to an AI block or to send it as a recap with the [Send email](../integrations/send-email) block. + + + ## Save in results By default, new variables are not persisted in the [Results](../../../results) table. They are only stored for the current user chat session. Enabling this option will save the variable in the `Results` table. diff --git a/apps/docs/snippets/loom-video.mdx b/apps/docs/snippets/loom-video.mdx index a163c66b7..ab4adc800 100644 --- a/apps/docs/snippets/loom-video.mdx +++ b/apps/docs/snippets/loom-video.mdx @@ -15,6 +15,7 @@ export const LoomVideo = ({ id }) => ( left: 0, width: '100%', height: '100%', + borderRadius: '8px', }} > diff --git a/apps/docs/snippets/youtube-video.mdx b/apps/docs/snippets/youtube-video.mdx new file mode 100644 index 000000000..63c46696e --- /dev/null +++ b/apps/docs/snippets/youtube-video.mdx @@ -0,0 +1,22 @@ +export const YoutubeVideo = ({ id }) => ( +
+ +
+)