Hello everyone!
I want to change the contact-card message and i don't want to change it in the .bfg file. Because the contact-card message is always changing.
Is it possible to change it by a procedure written in pkg file
Many thanks.
Wait on line.
Hello everyone!
I want to change the contact-card message and i don't want to change it in the .bfg file. Because the contact-card message is always changing.
Is it possible to change it by a procedure written in pkg file
Many thanks.
Wait on line.
In lib:/Utilities/MSNUtilities, there is this procedure:
ABMSNSetPersonalMessage(MESSAGE)
which sends a "setcontactcard" event to the Messenger client. You can create a background procedure to call this during startup, so whenever the agent starts up, the message will still be there.
It does't need to restart the bot or the user signs in again.
The contact card changes when you use that procedure
show you a test code block:
So when you type 'set contact card' the contact card changes immediately.
Hope it give you some help.
Can you explain the meaning of provisioned bot
Does it mean the bot deployed formally by Live Agent Team
There are 2 ways to set the contact card. One is to add the "contact-card" directive to the BFG, which means that when the bot launches on the Messenger network it will use that text. This requires a restart, regardless of whether or not the screen name is provisioned.
The other way is as described above, by sending an event to the Messenger client via BuddyScript calls.
Tom Ragle - MSFT wrote:
In lib:/Utilities/MSNUtilities, there is this procedure:
ABMSNSetPersonalMessage(MESSAGE)
which sends a "setcontactcard" event to the Messenger client. You can create a background procedure to call this during startup, so whenever the agent starts up, the message will still be there.
Hi, Tom
Could you show me the place of 'agent starts up'
I just found these procedures from the SDK, but it seems that no one is the right procedure to be called when agent starts up.
ABUserArrives()
ABFirstProc()
ABHelloProc()
ABStartSessionProc()
Thanks
Jimmy
procedure MyOwnProcedure() startup [every 60 seconds]
I just tried that. But when it was compiled, the SDK showed an error. Does this procedure work on new version of SDK
My SDK's version is 4.0 build 1028
Thanks
Hi, Tom
The error is
[E1] In procedure definition 'MyOwnProcedure', garbage found at end of the line: "[every 60 seconds]".
The procedure is
Thanks
Sorry I didn't look more closely at your code. The brackets are invalid. It should be:
Check out background procedures here: https://buddyscript.colloquis.com/docs/SDKWin/st_re054.html