getricky 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3318,9 +3318,9 @@ export type Workflow = {
|
|
|
3318
3318
|
type: 'conversation' | 'scheduled';
|
|
3319
3319
|
definition: {
|
|
3320
3320
|
/**
|
|
3321
|
-
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
3321
|
+
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
3322
3322
|
*/
|
|
3323
|
-
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
3323
|
+
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
3324
3324
|
/**
|
|
3325
3325
|
* Channels it listens to. See `GET /channels`.
|
|
3326
3326
|
*/
|
|
@@ -3334,7 +3334,11 @@ export type Workflow = {
|
|
|
3334
3334
|
*/
|
|
3335
3335
|
message_filters?: {
|
|
3336
3336
|
/**
|
|
3337
|
-
*
|
|
3337
|
+
* Match the first inbound message OR only_unassigned. Neither selected matches every message.
|
|
3338
|
+
*/
|
|
3339
|
+
first_message?: boolean;
|
|
3340
|
+
/**
|
|
3341
|
+
* Match while nobody has the conversation; OR first_message when selected.
|
|
3338
3342
|
*/
|
|
3339
3343
|
only_unassigned: boolean;
|
|
3340
3344
|
/**
|
|
@@ -3342,6 +3346,19 @@ export type Workflow = {
|
|
|
3342
3346
|
*/
|
|
3343
3347
|
skip_buttons: boolean;
|
|
3344
3348
|
};
|
|
3349
|
+
/**
|
|
3350
|
+
* Which outgoing messages a `message_sent` workflow reacts to; required for it.
|
|
3351
|
+
*/
|
|
3352
|
+
sent_message_filters?: {
|
|
3353
|
+
/**
|
|
3354
|
+
* Who sent it: `person` (the team), `ai` (an AI agent, including its tools), `automation` (a workflow), `broadcast`, or `external_app` (another app connected to the channel). Each at most once.
|
|
3355
|
+
*/
|
|
3356
|
+
senders: Array<'person' | 'ai' | 'automation' | 'broadcast' | 'external_app'>;
|
|
3357
|
+
/**
|
|
3358
|
+
* Only when the message contains this text, ignoring case, accents and repeated spaces.
|
|
3359
|
+
*/
|
|
3360
|
+
text_contains?: string;
|
|
3361
|
+
};
|
|
3345
3362
|
/**
|
|
3346
3363
|
* The period of a `team_away` workflow.
|
|
3347
3364
|
*/
|
|
@@ -4966,9 +4983,9 @@ export type CreateWorkflow = {
|
|
|
4966
4983
|
*/
|
|
4967
4984
|
definition: {
|
|
4968
4985
|
/**
|
|
4969
|
-
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
4986
|
+
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
4970
4987
|
*/
|
|
4971
|
-
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
4988
|
+
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
4972
4989
|
/**
|
|
4973
4990
|
* Channels it listens to. See `GET /channels`.
|
|
4974
4991
|
*/
|
|
@@ -4982,7 +4999,11 @@ export type CreateWorkflow = {
|
|
|
4982
4999
|
*/
|
|
4983
5000
|
message_filters?: {
|
|
4984
5001
|
/**
|
|
4985
|
-
*
|
|
5002
|
+
* Match the first inbound message OR only_unassigned. Neither selected matches every message.
|
|
5003
|
+
*/
|
|
5004
|
+
first_message?: boolean;
|
|
5005
|
+
/**
|
|
5006
|
+
* Match while nobody has the conversation; OR first_message when selected.
|
|
4986
5007
|
*/
|
|
4987
5008
|
only_unassigned: boolean;
|
|
4988
5009
|
/**
|
|
@@ -4990,6 +5011,19 @@ export type CreateWorkflow = {
|
|
|
4990
5011
|
*/
|
|
4991
5012
|
skip_buttons: boolean;
|
|
4992
5013
|
};
|
|
5014
|
+
/**
|
|
5015
|
+
* Which outgoing messages a `message_sent` workflow reacts to; required for it.
|
|
5016
|
+
*/
|
|
5017
|
+
sent_message_filters?: {
|
|
5018
|
+
/**
|
|
5019
|
+
* Who sent it: `person` (the team), `ai` (an AI agent, including its tools), `automation` (a workflow), `broadcast`, or `external_app` (another app connected to the channel). Each at most once.
|
|
5020
|
+
*/
|
|
5021
|
+
senders: Array<'person' | 'ai' | 'automation' | 'broadcast' | 'external_app'>;
|
|
5022
|
+
/**
|
|
5023
|
+
* Only when the message contains this text, ignoring case, accents and repeated spaces.
|
|
5024
|
+
*/
|
|
5025
|
+
text_contains?: string;
|
|
5026
|
+
};
|
|
4993
5027
|
/**
|
|
4994
5028
|
* The period of a `team_away` workflow.
|
|
4995
5029
|
*/
|
|
@@ -5230,9 +5264,9 @@ export type UpdateWorkflow = {
|
|
|
5230
5264
|
*/
|
|
5231
5265
|
definition?: {
|
|
5232
5266
|
/**
|
|
5233
|
-
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
5267
|
+
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
5234
5268
|
*/
|
|
5235
|
-
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
5269
|
+
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
5236
5270
|
/**
|
|
5237
5271
|
* Channels it listens to. See `GET /channels`.
|
|
5238
5272
|
*/
|
|
@@ -5246,7 +5280,11 @@ export type UpdateWorkflow = {
|
|
|
5246
5280
|
*/
|
|
5247
5281
|
message_filters?: {
|
|
5248
5282
|
/**
|
|
5249
|
-
*
|
|
5283
|
+
* Match the first inbound message OR only_unassigned. Neither selected matches every message.
|
|
5284
|
+
*/
|
|
5285
|
+
first_message?: boolean;
|
|
5286
|
+
/**
|
|
5287
|
+
* Match while nobody has the conversation; OR first_message when selected.
|
|
5250
5288
|
*/
|
|
5251
5289
|
only_unassigned: boolean;
|
|
5252
5290
|
/**
|
|
@@ -5254,6 +5292,19 @@ export type UpdateWorkflow = {
|
|
|
5254
5292
|
*/
|
|
5255
5293
|
skip_buttons: boolean;
|
|
5256
5294
|
};
|
|
5295
|
+
/**
|
|
5296
|
+
* Which outgoing messages a `message_sent` workflow reacts to; required for it.
|
|
5297
|
+
*/
|
|
5298
|
+
sent_message_filters?: {
|
|
5299
|
+
/**
|
|
5300
|
+
* Who sent it: `person` (the team), `ai` (an AI agent, including its tools), `automation` (a workflow), `broadcast`, or `external_app` (another app connected to the channel). Each at most once.
|
|
5301
|
+
*/
|
|
5302
|
+
senders: Array<'person' | 'ai' | 'automation' | 'broadcast' | 'external_app'>;
|
|
5303
|
+
/**
|
|
5304
|
+
* Only when the message contains this text, ignoring case, accents and repeated spaces.
|
|
5305
|
+
*/
|
|
5306
|
+
text_contains?: string;
|
|
5307
|
+
};
|
|
5257
5308
|
/**
|
|
5258
5309
|
* The period of a `team_away` workflow.
|
|
5259
5310
|
*/
|
|
@@ -3318,9 +3318,9 @@ export type Workflow = {
|
|
|
3318
3318
|
type: 'conversation' | 'scheduled';
|
|
3319
3319
|
definition: {
|
|
3320
3320
|
/**
|
|
3321
|
-
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
3321
|
+
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
3322
3322
|
*/
|
|
3323
|
-
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
3323
|
+
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
3324
3324
|
/**
|
|
3325
3325
|
* Channels it listens to. See `GET /channels`.
|
|
3326
3326
|
*/
|
|
@@ -3334,7 +3334,11 @@ export type Workflow = {
|
|
|
3334
3334
|
*/
|
|
3335
3335
|
message_filters?: {
|
|
3336
3336
|
/**
|
|
3337
|
-
*
|
|
3337
|
+
* Match the first inbound message OR only_unassigned. Neither selected matches every message.
|
|
3338
|
+
*/
|
|
3339
|
+
first_message?: boolean;
|
|
3340
|
+
/**
|
|
3341
|
+
* Match while nobody has the conversation; OR first_message when selected.
|
|
3338
3342
|
*/
|
|
3339
3343
|
only_unassigned: boolean;
|
|
3340
3344
|
/**
|
|
@@ -3342,6 +3346,19 @@ export type Workflow = {
|
|
|
3342
3346
|
*/
|
|
3343
3347
|
skip_buttons: boolean;
|
|
3344
3348
|
};
|
|
3349
|
+
/**
|
|
3350
|
+
* Which outgoing messages a `message_sent` workflow reacts to; required for it.
|
|
3351
|
+
*/
|
|
3352
|
+
sent_message_filters?: {
|
|
3353
|
+
/**
|
|
3354
|
+
* Who sent it: `person` (the team), `ai` (an AI agent, including its tools), `automation` (a workflow), `broadcast`, or `external_app` (another app connected to the channel). Each at most once.
|
|
3355
|
+
*/
|
|
3356
|
+
senders: Array<'person' | 'ai' | 'automation' | 'broadcast' | 'external_app'>;
|
|
3357
|
+
/**
|
|
3358
|
+
* Only when the message contains this text, ignoring case, accents and repeated spaces.
|
|
3359
|
+
*/
|
|
3360
|
+
text_contains?: string;
|
|
3361
|
+
};
|
|
3345
3362
|
/**
|
|
3346
3363
|
* The period of a `team_away` workflow.
|
|
3347
3364
|
*/
|
|
@@ -4966,9 +4983,9 @@ export type CreateWorkflow = {
|
|
|
4966
4983
|
*/
|
|
4967
4984
|
definition: {
|
|
4968
4985
|
/**
|
|
4969
|
-
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
4986
|
+
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
4970
4987
|
*/
|
|
4971
|
-
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
4988
|
+
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
4972
4989
|
/**
|
|
4973
4990
|
* Channels it listens to. See `GET /channels`.
|
|
4974
4991
|
*/
|
|
@@ -4982,7 +4999,11 @@ export type CreateWorkflow = {
|
|
|
4982
4999
|
*/
|
|
4983
5000
|
message_filters?: {
|
|
4984
5001
|
/**
|
|
4985
|
-
*
|
|
5002
|
+
* Match the first inbound message OR only_unassigned. Neither selected matches every message.
|
|
5003
|
+
*/
|
|
5004
|
+
first_message?: boolean;
|
|
5005
|
+
/**
|
|
5006
|
+
* Match while nobody has the conversation; OR first_message when selected.
|
|
4986
5007
|
*/
|
|
4987
5008
|
only_unassigned: boolean;
|
|
4988
5009
|
/**
|
|
@@ -4990,6 +5011,19 @@ export type CreateWorkflow = {
|
|
|
4990
5011
|
*/
|
|
4991
5012
|
skip_buttons: boolean;
|
|
4992
5013
|
};
|
|
5014
|
+
/**
|
|
5015
|
+
* Which outgoing messages a `message_sent` workflow reacts to; required for it.
|
|
5016
|
+
*/
|
|
5017
|
+
sent_message_filters?: {
|
|
5018
|
+
/**
|
|
5019
|
+
* Who sent it: `person` (the team), `ai` (an AI agent, including its tools), `automation` (a workflow), `broadcast`, or `external_app` (another app connected to the channel). Each at most once.
|
|
5020
|
+
*/
|
|
5021
|
+
senders: Array<'person' | 'ai' | 'automation' | 'broadcast' | 'external_app'>;
|
|
5022
|
+
/**
|
|
5023
|
+
* Only when the message contains this text, ignoring case, accents and repeated spaces.
|
|
5024
|
+
*/
|
|
5025
|
+
text_contains?: string;
|
|
5026
|
+
};
|
|
4993
5027
|
/**
|
|
4994
5028
|
* The period of a `team_away` workflow.
|
|
4995
5029
|
*/
|
|
@@ -5230,9 +5264,9 @@ export type UpdateWorkflow = {
|
|
|
5230
5264
|
*/
|
|
5231
5265
|
definition?: {
|
|
5232
5266
|
/**
|
|
5233
|
-
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
5267
|
+
* `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
|
|
5234
5268
|
*/
|
|
5235
|
-
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
5269
|
+
trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
|
|
5236
5270
|
/**
|
|
5237
5271
|
* Channels it listens to. See `GET /channels`.
|
|
5238
5272
|
*/
|
|
@@ -5246,7 +5280,11 @@ export type UpdateWorkflow = {
|
|
|
5246
5280
|
*/
|
|
5247
5281
|
message_filters?: {
|
|
5248
5282
|
/**
|
|
5249
|
-
*
|
|
5283
|
+
* Match the first inbound message OR only_unassigned. Neither selected matches every message.
|
|
5284
|
+
*/
|
|
5285
|
+
first_message?: boolean;
|
|
5286
|
+
/**
|
|
5287
|
+
* Match while nobody has the conversation; OR first_message when selected.
|
|
5250
5288
|
*/
|
|
5251
5289
|
only_unassigned: boolean;
|
|
5252
5290
|
/**
|
|
@@ -5254,6 +5292,19 @@ export type UpdateWorkflow = {
|
|
|
5254
5292
|
*/
|
|
5255
5293
|
skip_buttons: boolean;
|
|
5256
5294
|
};
|
|
5295
|
+
/**
|
|
5296
|
+
* Which outgoing messages a `message_sent` workflow reacts to; required for it.
|
|
5297
|
+
*/
|
|
5298
|
+
sent_message_filters?: {
|
|
5299
|
+
/**
|
|
5300
|
+
* Who sent it: `person` (the team), `ai` (an AI agent, including its tools), `automation` (a workflow), `broadcast`, or `external_app` (another app connected to the channel). Each at most once.
|
|
5301
|
+
*/
|
|
5302
|
+
senders: Array<'person' | 'ai' | 'automation' | 'broadcast' | 'external_app'>;
|
|
5303
|
+
/**
|
|
5304
|
+
* Only when the message contains this text, ignoring case, accents and repeated spaces.
|
|
5305
|
+
*/
|
|
5306
|
+
text_contains?: string;
|
|
5307
|
+
};
|
|
5257
5308
|
/**
|
|
5258
5309
|
* The period of a `team_away` workflow.
|
|
5259
5310
|
*/
|