Ana içeriğe geç

Can you add buttons in Deskpro that run your own scripts? - Bilgi Bankası / Q&A / Integrations & API - Deskpro Support

Can you add buttons in Deskpro that run your own scripts?

Yazarlar listesi
  • Kim

Yes. You can build a custom app with its own button, or use a macro and trigger to call your script with no code inside Deskpro. Your scripts can also use the API to update Deskpro when they finish.

Option 1: Build a custom app or widget

  • Apps built with the Apps SDK (software development kit) run inside Deskpro. They can appear in the ticket sidebar, or globally in the app bar.

  • An app can add a button to the ticket actions menu.

  • The button can call your scripts through the app proxy. The proxy only allows the URLs you list. It can also add your API keys or secrets to the request.

  • For simpler cases, you can create a widget inside Deskpro instead.

Option 2: Use a webhook, with no code inside Deskpro

Triggers, SLAs, and escalations have a Call webhook action. It sends the ticket details to your script's URL.

To start the script with a click:

  1. Create a macro that adds a label to the ticket.

  2. Create a trigger that looks for that label and calls the webhook.

  3. Agents run the macro on a ticket when they want the script to run.

Option 3: Use the REST API

Your scripts can use REST API v2 with an API key to read and update tickets and users. For example, a script can add a note to the ticket when it finishes. You can use the API alongside either option above.

Yararlı Yararlı değil