update docs to reflect reply name

This commit is contained in:
Alexis Falaise 2025-04-02 13:18:21 +02:00
parent bd17e326d3
commit 7ad8a86679
7 changed files with 371 additions and 37 deletions

View File

@ -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>

View 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.

View File

@ -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"
]
}
}
}
}
}
}
}
}

View File

@ -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"
]
}
}
}
}
}
}
}
}

View File

@ -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 = {