We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f84b10 commit ccc7101Copy full SHA for ccc7101
packages/forge/blocks/difyAi/actions/createChatMessage.ts
@@ -1,5 +1,5 @@
1
import { createAction, option } from '@typebot.io/forge'
2
-import { isDefined, isEmpty } from '@typebot.io/lib'
+import { isDefined, isEmpty, isNotEmpty } from '@typebot.io/lib'
3
import { HTTPError, got } from 'got'
4
import { auth } from '../auth'
5
import { defaultBaseUrl } from '../constants'
@@ -123,7 +123,7 @@ export const createChatMessage = createAction({
123
if (item === 'Answer')
124
variables.set(mapping.variableId, convertNonMarkdownLinks(answer))
125
126
- if (item === 'Conversation ID')
+ if (item === 'Conversation ID' && isNotEmpty(conversationId))
127
variables.set(mapping.variableId, conversationId)
128
129
if (item === 'Total Tokens')
0 commit comments