Help - Search - Members - Calendar
Full Version: Trigger Skype through HREF
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
fdqps
Hi,

I had a similar thread some weeks ago.
The problem I have is that I want to trigger a Skype BOT to do some work when a user on my homepage clicks a HREF link.

Example:
<a href="skype:teknograd?chat&topic=support">Need support</a>

If you change topic the chat session is triggered. But only if the user and "teknograd" previously had a chat running.
As I will get support requests from people I don't previously have talked to the topic change trick wont work.

So, is there a way to initiate/trigger a event which I can grab in my BOT?

Example: <a href="skype:teknograd?chat&topic=support&message=hello\r\n">Need support</a>

Thanks in advance for help!
TheUberOverlord
QUOTE(fdqps @ Mon Oct 15 2007, 11:47) [snapback]452337[/snapback]

Hi,

I had a similar thread some weeks ago.
The problem I have is that I want to trigger a Skype BOT to do some work when a user on my homepage clicks a HREF link.

Example:
<a href="skype:teknograd?chat&topic=support">Need support</a>

If you change topic the chat session is triggered. But only if the user and "teknograd" previously had a chat running.
As I will get support requests from people I don't previously have talked to the topic change trick wont work.

So, is there a way to initiate/trigger a event which I can grab in my BOT?

Example: <a href="skype:teknograd?chat&topic=support&message=hello\r\n">Need support</a>

Thanks in advance for help!


Sure if you had an application that was reading ALL chat messages in this example for "teknograd" then when it received a message that had a chat topic of "support&[b]message=hello" it would do this or that.
fdqps
QUOTE(TheUberOverlord @ Mon Oct 15 2007, 19:30) [snapback]452379[/snapback]

Sure if you had an application that was reading ALL chat messages in this example for "teknograd" then when it received a message that had a chat topic of "support&[b]message=hello" it would do this or that.


Sorry crying.png I don't really understand your answer.

If a user changes the topic of a non existing chat nothing is sent to the receiving Skype client (at least not according to the Tracer.exe application).
So I need the calling client to actually send a message or anything else that initiate the chat.

My question stands, is there a way to initiate a chat through HREF?
TheUberOverlord
QUOTE(fdqps @ Tue Oct 16 2007, 02:47) [snapback]452545[/snapback]

Sorry crying.png I don't really understand your answer.

If a user changes the topic of a non existing chat nothing is sent to the receiving Skype client (at least not according to the Tracer.exe application).
So I need the calling client to actually send a message or anything else that initiate the chat.

My question stands, is there a way to initiate a chat through HREF?


I am confused, if the HREF is located as part of your web page, how can the user change the "Intial" topic of the chat, if you have an applicaton that is reading all chat messages and does something when it sees a specific topic come in, this will work. You will get the message what the topic you used, and you will see it is from a "Specific" Skype name, when you then can chat back and forth with using a bot. The Bot could leave any messages that do not have a chat topic of "X" alone.

What part of this won't do the job for you?
fdqps
QUOTE(TheUberOverlord @ Tue Oct 16 2007, 13:30) [snapback]452625[/snapback]

I am confused, if the HREF is located as part of your web page, how can the user change the "Intial" topic of the chat, if you have an applicaton that is reading all chat messages and does something when it sees a specific topic come in, this will work. You will get the message what the topic you used, and you will see it is from a "Specific" Skype name, when you then can chat back and forth with using a bot. The Bot could leave any messages that do not have a chat topic of "X" alone.

What part of this won't do the job for you?


Ill try to explain it a bit more.
If a user looks at my homepage and needs support he clicks the support HREF link (skype:teknograd?chat&topic=support).
His Skype will open up a chat window to "teknograd". But if he doesn't write a message nothing will trigger my bot.
Obviously the normal user would write something in the chat. But if I could trigger the bot directly when the user clicks my HREF link the bot can "prepare" it self.
Example. I could have different topics (support, admin, sales) and route the user to the correct Skype group who should answer the user.

So I could off course wait until the user writes something, but if I in some way could initiate the chat as soon as the user clicks the HREF (thats what I tried to illustrate with "skype:teknograd?chat&topic=support&message=hello\r\n") I could greet the user with useful information directly.

What do you think? Is it possible?
spud5
QUOTE(fdqps @ Tue Oct 16 2007, 19:27) [snapback]452732[/snapback]

Ill try to explain it a bit more.
If a user looks at my homepage and needs support he clicks the support HREF link (skype:teknograd?chat&topic=support).
His Skype will open up a chat window to "teknograd". But if he doesn't write a message nothing will trigger my bot.
Obviously the normal user would write something in the chat. But if I could trigger the bot directly when the user clicks my HREF link the bot can "prepare" it self.
..

If you get the user to ADD your bot (skype:teknograd?add) then you could detect that event and respond with a chat message.
fdqps
QUOTE(spud5 @ Tue Oct 16 2007, 20:21) [snapback]452746[/snapback]

If you get the user to ADD your bot (skype:teknograd?add) then you could detect that event and respond with a chat message.


That seems to work. But only the first time!
When the user needs support from me the next time teknograd is allready added and the user needs to think/remember how to initiate the bot.

Evenen if the user deletes teknograd Skype seems to remember that their once was a connection and just adds teknograd and in the Tracer.exe this is not shown.

Any other ideas?
spud5
QUOTE(fdqps @ Wed Oct 17 2007, 10:59) [snapback]452963[/snapback]

That seems to work. But only the first time!
..

Have a look at the JiWire bot (skype:jiwire?userinfo).
They solve the problem by putting some instructions in the user profile/mood text.
fdqps
QUOTE(spud5 @ Wed Oct 17 2007, 11:13) [snapback]452969[/snapback]

Have a look at the JiWire bot (skype:jiwire?userinfo).
They solve the problem by putting some instructions in the user profile/mood text.


Thanks. Ot might be obvious but I just don't see what they are doing.
Any more clues to get me going?
blush.png
spud5
QUOTE(fdqps @ Wed Oct 17 2007, 11:43) [snapback]452983[/snapback]

..I just don't see what they are doing..

..and I was hoping it would be easy.
smile.png


In the profile they say "Type ? for help and keywords"
[attachmentid=11395]
It may not suit your scenario or the needs of your users, but it's the only solution I can suggest for now.
If you decide to go this route then there's some other information here and here about contact list issues.
fdqps
QUOTE(spud5 @ Wed Oct 17 2007, 11:59) [snapback]452986[/snapback]

..and I was hoping it would be easy.
smile.png
In the profile they say "Type ? for help and keywords"
[attachmentid=11395]
It may not suit your scenario or the needs of your users, but it's the only solution I can suggest for now.
If you decide to go this route then there's some other information here and here about contact list issues.



Thanks bigsmile.png. I will try that route!
fdqps
QUOTE(spud5 @ Wed Oct 17 2007, 11:59) [snapback]452986[/snapback]

..and I was hoping it would be easy.
smile.png
In the profile they say "Type ? for help and keywords"
[attachmentid=11395]
It may not suit your scenario or the needs of your users, but it's the only solution I can suggest for now.
If you decide to go this route then there's some other information here and here about contact list issues.


If I use skype:teknograd?call and set the bot to "Skype Me" I can trigger the bot through a call event handler.
I can then hang up and initiate a chat with the user.
Not very nice but the tests I have done seems to work.

It would be nice if "?chat" would have triggered the some event in the same way.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.