cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
845
Views
1
Helpful
3
Replies

Creating Incoming Webhook URL With BOT Email

krishna14313
Level 1
Level 1

Hi All,

I am trying to integrate gitlab with webex_teams. When I create webhook url using incoming webhooks app, notification profile showing my cisco account email. Instead of that I created a bot for this notifications. But not sure how to create incoming webhook url using bot email. One of my colleague created jira webhook url with jira notifcation bot. he left the company. now I have no one to help me to get this done.

Please help me how to create a webex teams incoming webhook url with bot email.

3 Replies 3

sandiban
Cisco Employee
Cisco Employee

Hi @krishna14313,

Thanks for your patience so far!
Just to let you know, we already have a GitLab Bot implemented to stay updated about the repositories changes and track those changes time-to-time through Webex message space notifications and you can add the Bot in a 1-1 space or, even in Group space. You can test the Bot here - https://apphub.webex.com/applications/gitlab-cisco-systems-80617 and it's Free.
I hope this would already solve the purpose for you and you can get rid of all this implementation work.

However, if you want to implement the whole process, still that's also fine and that'd be good implementation work too !
But it's never possible to design a Webhook URL with a Bot Email.
Basically what you need do is, you need to create a Webhook using the Bot Token from here - https://developer.webex.com/docs/api/v1/webhooks/create-a-webhook and for the Webhook targetUrl or, as you referred as Webhook URL, you must need to have a Public URL setup which is publicly accessible.

So, whenever there is a new notification, the Bot webhook will be fired which is created by the Bot Token and /POST event response details will be reflected to that public URL (you must have to make sure that URL is a public URL, not a Private one).
For our test purposes, we use the sample Public URL from here - https://webhook.site/ and once you visit this portal, it'd provide you fresh Public URL for test purposes.
But never use such Free URLs in your production system, that you need purchase or, design by your own. Hope that helps!
Please let us know for any further queries.

Regards!
Sandip

Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back on this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"

@sandiban This helps. Can you please tell me what are the other mandatory values I need to fill for each attribute in webhook createn. it's bit confusing since I am new developer. is there any maping doc?

Thanks for checking @krishna14313 !
To answer your query, once you review the Webhook Doc. link as I provided above - https://developer.webex.com/docs/api/v1/webhooks/create-a-webhook, you can find here the mandatory fields (or say, request parameters) which are marked as "Required" in right hand side black panel (or say, in the right hand side "Try it!" section)
So, the Webhook "name", "targetUrl", "resource" and "event" - these are the Required fields of the Webhook and rest you may or, may not use as per your requirement.
Description of all the fields are provided in the documentation.

Regards!
Sandip