Actions10
Сделки: проверить активную по контакту
AI-generatedSummary
Check for an active deal linked to a specified contact ID in Bitrix24 and determine if a bot can respond based on the deal's status.
Inputs
- ID контакта (required) — The contact ID to check for active deals associated with this contact.
- Статусы без ответа (через запятую) — Comma-separated list of deal statuses considered as no response statuses; if a deal is in any of these statuses, canBotRespond will be false.
Output shape
A single JSON object per input item containing canBotRespond (boolean) indicating if a bot can respond, and if an active deal is found, an activeDeal object with the deal details.
If an active deal is found whose status is not within the specified "no response" statuses, the node returns canBotRespond as true along with the activeDeal data. If no active deal is found or all deals have no response statuses, only canBotRespond with value false is returned.
Examples
Example 1: Check if a bot can respond based on the contact's active deal
Provide the Contact ID and optionally override the default no response statuses (WON, LOSE, APOLOGY, NOT_FOUND) to define which deal statuses block bot responses.