2
0

📝 Add Transcript doc

This commit is contained in:
Baptiste Arnaud
2024-06-10 17:46:29 +02:00
parent ad6894e110
commit fdbd9c08a3
3 changed files with 31 additions and 0 deletions

View File

@ -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.
<Frame>
@ -126,6 +128,12 @@ This value block allows you to find the `Id` from `Ids` with the same index as `
/>
</Frame>
## 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.
<YoutubeVideo id="OZLfiLp20f8" />
## 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.

View File

@ -15,6 +15,7 @@ export const LoomVideo = ({ id }) => (
left: 0,
width: '100%',
height: '100%',
borderRadius: '8px',
}}
></iframe>
</div>

View File

@ -0,0 +1,22 @@
export const YoutubeVideo = ({ id }) => (
<div
style={{
position: 'relative',
paddingBottom: '64.63195691202873%',
height: 0,
}}
>
<iframe
src={`https://www.youtube.com/embed/${id}`}
allowFullScreen
style={{
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
borderRadius: '8px',
}}
></iframe>
</div>
)