mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-13 21:02:56 +08:00
update docs to reflect reply name
This commit is contained in:
parent
bd17e326d3
commit
7ad8a86679
@ -1,11 +0,0 @@
|
||||
---
|
||||
title: On New Message
|
||||
---
|
||||
|
||||
This event allows you to define a message that will trigger a specific flow when sent.
|
||||
|
||||
You can optionally resume the flow.
|
||||
|
||||
<Frame>
|
||||
<img src="/images/events/on-message.avif" alt="On New Message event in Typebot editor" />
|
||||
</Frame>
|
||||
11
apps/docs/editor/events/reply.mdx
Normal file
11
apps/docs/editor/events/reply.mdx
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Reply Event
|
||||
---
|
||||
|
||||
This event will trigger everytime a reply is received.
|
||||
|
||||
Enable and define an **Exit condition** to exit the main flow and start the Reply Event block flow.
|
||||
|
||||
<Frame>
|
||||
<img src="/images/events/reply-event.avif" alt="On New Message event in Typebot editor" />
|
||||
</Frame>
|
||||
Binary file not shown.
BIN
apps/docs/images/events/reply-event.avif
Normal file
BIN
apps/docs/images/events/reply-event.avif
Normal file
Binary file not shown.
@ -3303,17 +3303,73 @@
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"onMessage"
|
||||
"reply"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resumeAfter": {
|
||||
"type": "boolean"
|
||||
"exitCondition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"condition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logicalOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OR",
|
||||
"AND"
|
||||
]
|
||||
},
|
||||
"comparisons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"comparisonOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Greater or equal to",
|
||||
"Less than",
|
||||
"Less or equal to",
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with",
|
||||
"Matches regex",
|
||||
"Does not match regex"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4014,17 +4070,73 @@
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"onMessage"
|
||||
"reply"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resumeAfter": {
|
||||
"type": "boolean"
|
||||
"exitCondition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"condition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logicalOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OR",
|
||||
"AND"
|
||||
]
|
||||
},
|
||||
"comparisons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"comparisonOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Greater or equal to",
|
||||
"Less than",
|
||||
"Less or equal to",
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with",
|
||||
"Matches regex",
|
||||
"Does not match regex"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6773,17 +6885,73 @@
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"onMessage"
|
||||
"reply"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resumeAfter": {
|
||||
"type": "boolean"
|
||||
"exitCondition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"condition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logicalOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OR",
|
||||
"AND"
|
||||
]
|
||||
},
|
||||
"comparisons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"comparisonOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Greater or equal to",
|
||||
"Less than",
|
||||
"Less or equal to",
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with",
|
||||
"Matches regex",
|
||||
"Does not match regex"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -23064,17 +23232,73 @@
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"onMessage"
|
||||
"reply"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resumeAfter": {
|
||||
"type": "boolean"
|
||||
"exitCondition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"condition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logicalOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OR",
|
||||
"AND"
|
||||
]
|
||||
},
|
||||
"comparisons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"comparisonOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Greater or equal to",
|
||||
"Less than",
|
||||
"Less or equal to",
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with",
|
||||
"Matches regex",
|
||||
"Does not match regex"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -25421,17 +25645,73 @@
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"onMessage"
|
||||
"reply"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resumeAfter": {
|
||||
"type": "boolean"
|
||||
"exitCondition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"condition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logicalOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OR",
|
||||
"AND"
|
||||
]
|
||||
},
|
||||
"comparisons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"comparisonOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Greater or equal to",
|
||||
"Less than",
|
||||
"Less or equal to",
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with",
|
||||
"Matches regex",
|
||||
"Does not match regex"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5436,17 +5436,73 @@
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"onMessage"
|
||||
"reply"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"resumeAfter": {
|
||||
"type": "boolean"
|
||||
"exitCondition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"condition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logicalOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OR",
|
||||
"AND"
|
||||
]
|
||||
},
|
||||
"comparisons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"variableId": {
|
||||
"type": "string"
|
||||
},
|
||||
"comparisonOperator": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Equal to",
|
||||
"Not equal",
|
||||
"Contains",
|
||||
"Does not contain",
|
||||
"Greater than",
|
||||
"Greater or equal to",
|
||||
"Less than",
|
||||
"Less or equal to",
|
||||
"Is set",
|
||||
"Is empty",
|
||||
"Starts with",
|
||||
"Ends with",
|
||||
"Matches regex",
|
||||
"Does not match regex"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import type { SessionState } from "@typebot.io/chat-session/schemas";
|
||||
import type { TDraggableEvent } from "@typebot.io/events/schemas";
|
||||
import { getBlockById } from "@typebot.io/groups/helpers/getBlockById";
|
||||
import { addBlockToTypebotIfMissing } from "../addBlockToTypebotIfMissing";
|
||||
import { addPortalEdge } from "../addPortalEdge";
|
||||
import { getNextGroup } from "../getNextGroup";
|
||||
|
||||
type Props = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user