-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 (dify) Fix conversation ID being overwritten randomly
Closes #1452
- Loading branch information
1 parent
fadcd3a
commit 7f39d5a
Showing
9 changed files
with
132 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { option } from '@typebot.io/forge' | ||
|
||
export const deprecatedCreateChatMessageOptions = option.object({ | ||
conversation_id: option.string | ||
.layout({ | ||
label: 'Conversation ID', | ||
moreInfoTooltip: | ||
'Used to remember the conversation with the user. If empty, a new conversation id is created.', | ||
isHidden: true, | ||
}) | ||
.describe('Deprecated, use `conversationVariableId` instead'), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters