1b.app
Link copied -

send messages action doesn't switch viber bots

there is a customized business process,
but it took some viber messages to be sent from another bot
added new bots, reconfigure the procedure,
as a result, the message comes anyway from the old bot.
even deleting an action and adding a new one does not give a result
https://adapter.crm-onebox.com/admin/shop/workflow/14/procedure/2/?status=0
Original question is available on version: ru

Answers:

The action works in such a way that it tries to find the dialog ID for the specified token, and if there is none, it takes the dialog that already had a conversation.
Actually, this is what happens for you - there is no dialogue with the contact for the token you have chosen, and the message is sent from the token that already had a dialogue.
You cannot send messages to a contact without a conversation ID - that is, with a bot, it must start the conversation first (subscribe).
In order not to send a message from another token - in action there is a setting "Use only the selected account to send a message"
16.11.2020, 12:56
Original comment available on version: ru

what if it's not a dialogue?
16.11.2020, 17:14
Original comment available on version: ru


Mironenko Dmitry wrote:
what if it's not a dialogue?

Then provide links to the process from where you are trying to send messages with the bot change by procedures - I will check if there is a chat ID for the dialogue on this bot on the client of the process.
17.11.2020, 10:29
Original comment available on version: ru

for example this process
https://adapter.crm-onebox.com/admin/customorder/issue/4261/edit/
sent me messages to this bot

and the one that is empty in the settings is silent ...
17.11.2020, 13:53
Original comment available on version: ru

so far nothing is working
16.01.2021, 19:41
Original comment available on version: ru


Mironenko Dmitry wrote:
for example this process
https://adapter.crm-onebox.com/admin/customorder/issue/4261/edit/

There is no chat in this process and it doesn't follow the procedure you mentioned above.
Provide a link to exactly the process that was discussed initially.
18.01.2021, 14:54
Original comment available on version: ru

but it sends messages it is process.
can you explain how it works?
18.01.2021, 23:36
Original comment available on version: ru


Mironenko Dmitry wrote:
but it sends messages it is process.

Well, we started discussing the problem in another process, where we talked about the procedure - I indicated how it works.
Now you are changing the description of the problem?
19.01.2021, 16:46
Original comment available on version: ru

It's a little unclear how it works, I'm probably missing something
well let's start from the beginning.
"The action works in such a way that it tries to find the conversation ID for the specified token"
1.where is the dialog ID looked for? by processes or chats?
2. what is a token?
3. Why then do you need a Viber ID?
4. And how will the action work if there are three chats on different bots on Viber ID?
it feels like the search for the dialog ID just takes the first viber chat, the rest are ignored despite the fact that the bot name is set in the action...
20.01.2021, 11:33
Original comment available on version: ru

Initially, I simply indicated the settings for viber messages and did not conduct examples of the process.
but does not work on any processes
if the previous example doesn't work, you can use this one
https://adapter.crm-onebox.com/admin/customorder/order/1/edit/
20.01.2021, 11:48
Original comment available on version: ru


Mironenko Dmitry wrote:
if the previous example doesn't work, you can use this one
https://adapter.crm-onebox.com/admin/customorder/order/1/edit/

Ok, let's look into this.
In the description, you indicated the procedure https://adapter.crm-onebox.com/admin/shop/workflow/14/procedure/2/?status=0, but this order is in a completely different BP.
What are we checking? Is there an action configured somewhere in this PSU?
20.01.2021, 16:09
Original comment available on version: ru

blunted...
here is the procedure set up on the button

https://adapter.crm-onebox.com/admin/shop/workflow/12/procedure/32/?status=0
and got this result
20.01.2021, 22:24
Original comment available on version: ru

I don't see the chat ID for this client using the MDN Parcel token in the database
For a test from this client, you can write to the MDN Parcel bot - let's check whether pushes from this bot come to OneBox and whether they are written to the contact.
21.01.2021, 16:41
Original comment available on version: ru


Tyndyk Maxim Vadimovich
Administrator wrote:
I don't see the chat ID for this client using the MDN Parcel token in the database
For a test from this client, you can write to the MDN Parcel bot - let's check whether pushes from this bot come to OneBox and whether they are written to the contact.

well, here is the task from the chat
https://adapter.crm-onebox.com/admin/customorder/issue/8432/edit/
21.01.2021, 22:13
Original comment available on version: ru

I also screwed three buttons with a viber to this process.
You can practice this process as well.
all three buttons work send message only from MDN
- and with this setting, the message is sent not to the viber but to the process.
21.01.2021, 22:27
Original comment available on version: ru

https://adapter.crm-onebox.com/admin/customorder/issue/8487/edi
and this is the task from the MDN chat REVIEW
21.01.2021, 22:28
Original comment available on version: ru




Mironenko Dmitry wrote:
well, here is the task from the chat
https://adapter.crm-onebox.com/admin/customorder/issue/8432/edit/

there is only a chat ID for MDN parcel
can you write to viber of another account from under the same user?
04.02.2021, 16:20
Original comment available on version: ru


Tyndyk Maxim Vadimovich
there is only a chat ID for MDN parcel
can you write to viber of another account from under the same user?

wrote everything...
what is it about
"chat id by MDN parcel"
- and the message goes only to MDN
- and MDN parcel - the message disappears somewhere
- MDN Feedback gives an error.
04.02.2021, 17:29
Original comment available on version: ru


show where from the phone https://adapter.crm-onebox.com/admin/shop/users/5526/ they write to 2 accounts of different vibers
no need to write anywhere from OneBox
I need 2 push notifications from viber from different accounts.
04.02.2021, 18:20
Original comment available on version: ru


and where are these 2 messages from 1 of this user in the system?
Viber just does not transmit the phone number - accordingly, it is not known why to find a contact - you must have several contacts of the same name in the system - are there any?
09.02.2021, 18:12
Original comment available on version: ru

Viber "just like that" transmits chat ID.
i.e. all the settings in action (from which bot to send, etc.) are all fiction...
For each viber bot, do I need to create duplicate contact cards?
14.02.2021, 09:42
Original comment available on version: ru

https://adapter.crm-onebox.com/admin/logs/showall/ajax/?file=viber-2021-02-04.lo...
contact searches/creates based on id
in webhooks of different chats - different user IDs - in fact, different contact cards are created (after all, there is no same phone number to search for)
and in order to send a message to a client in another chat, he needs to have the identifiers of this other chat
and in order for them to be, then you need to combine such cards into one
15.02.2021, 17:29
Original comment available on version: ru

those.
I do three chats
convert them into processes
in each process I specify a new client
then I delete two with a combination on one card
So?
15.02.2021, 23:32
Original comment available on version: ru


Mironenko Dmitry wrote:
then I delete two with a combination on one card
So?

Yes
and from these 2 cards you will add identifiers for other viber tokens to his card, and, accordingly, different viber identifiers will be known for different integrations
16.02.2021, 16:47
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment