envoyer_message
With accountWrites (confirm)Sends a notification to customers' lock screens (through their Apple Wallet or Google Wallet card). Use it to announce something new, an offer, an event, or to bring customers back. The audience can be set (all, regulars, lost, close to the reward, new, reward to collect, inactive) and combined with filters (days without a visit, stamps on the card, visits, sign-up date). Text of 180 characters at most, sent as is. Only one message per day per business. Call first with confirmer=false: the preview gives the exact text, the number of recipients and how many can actually receive it, without sending anything. Only call with confirmer=true after the person's explicit approval: a message sent cannot be taken back. For automatic messages (win-back, birthday, reminders), use regler_automatismes.
Parameters
Values : tous habitues perdus presque nouveaux recompense_prete inactifs
Default : "tous"
Default : false
Response
A text the assistant reads (content), and the same information as structured data (structuredContent). When a call is refused (a parameter to fix, plan, role), the response has isError: true and a sentence the assistant can rephrase.
Warning : this tool writes. Called with confirmer: false (the default), it only returns a preview, without changing anything. The assistant must show it to you and wait for your approval before calling again with confirmer: true.
Updated