2
0

🐛 (dify) Fix conversation ID being overwritten randomly

Closes #1452
This commit is contained in:
Baptiste Arnaud
2024-04-23 11:23:04 +02:00
parent fadcd3af22
commit 7f39d5ac79
9 changed files with 132 additions and 42 deletions

View File

@ -132,7 +132,13 @@ export const ZodFieldLayout = ({
<DropdownList
currentItem={data ?? layout?.defaultValue}
onItemSelect={onDataChange}
items={innerSchema._def.values}
items={
layout?.hiddenItems
? innerSchema._def.values.filter(
(v: any) => !layout.hiddenItems.includes(v)
)
: innerSchema._def.values
}
label={layout?.label}
helperText={
layout?.helperText ? (

View File

@ -0,0 +1,15 @@
---
title: Dify.AI
---
This block allows you to integrate your Dify.AI's assistant in your typebot.
## Create Chat Message
This action sends a user message to your agent. Then you can save `Answer` to a variable and display it in your typebot.
You are expected to provide the following parameters:
- `Query`: The user message you want to send to your agent.
- `Conversation ID`: The conversation ID you want to use for this message. If you don't provide one, a new conversation will be created. This variable content will be updated automatically if a new conversation is created.
- `User`: The user email used to identify the user in the conversation.

View File

@ -125,7 +125,8 @@
"editor/blocks/integrations/zemantic-ai",
"editor/blocks/integrations/mistral",
"editor/blocks/integrations/elevenlabs",
"editor/blocks/integrations/anthropic"
"editor/blocks/integrations/anthropic",
"editor/blocks/integrations/dify-ai"
]
}
]

View File

@ -19591,7 +19591,7 @@
"query": {
"type": "string"
},
"conversation_id": {
"conversationVariableId": {
"type": "string"
},
"user": {
@ -19629,6 +19629,10 @@
}
}
}
},
"conversation_id": {
"type": "string",
"description": "Deprecated, use `conversationVariableId` instead"
}
},
"required": [

View File

@ -10419,7 +10419,7 @@
"query": {
"type": "string"
},
"conversation_id": {
"conversationVariableId": {
"type": "string"
},
"user": {
@ -10457,6 +10457,10 @@
}
}
}
},
"conversation_id": {
"type": "string",
"description": "Deprecated, use `conversationVariableId` instead"
}
},
"required": [