Skip to main content

Webhooks

What is a webhook?

When transcribing an audio file, you need to wait until the status of the transcript changes to completed. If a file is very long, it could take a bit of time to transcribe it. To check on the current status of a scheduled job, you can poll the model-status API to get the current status and wait until it reflects completed. Alternatively, you can register a webhook on the NeuralSpace platform and receive status updates every time there is a change.

This will not only save bandwidth but also help you develop sequential workflows. For example, after a transcription job finishes successfully, you can call use the results in your own processes that might come after this.

How to register a webhook?

Step 1: Open the VoiceAI platform and login into your account.

voice-ai-login

Step 2: Open Notifications by clicking on the bell icon on the top right.

home-bell-ison

Step 3: Click on View all notifications and then on Notification settings.

notifications-page

Step 4: Click on the Add Webhook Endpoint button and fill in the details before clicking Add Webhook.

add-webhook

tip
  • The webhook endpoint must be a POST request
  • To test the endpoint locally, tunneling tools like ngrok can be used.

Response

The webhook response looks like below:

{
"event": "file-transcription",
"data": {
"customerId": "62342eae4318cb0012443229",
"status": "Transcription Completed",
"jobId": "4915b673-e2a6-4529-9142-6a2c980d94ec"
}
}

List of all status messages in the response

Depending on the features requested, webhook reponse can consist of multiple status messages denoting progress of each feature. The exclusive list of such status messages is given below.

StatusMeaning
QueuedVoiceai request is yet to be processed
StartedVoiceai request is in process
CompletedAll the requested features in the request are succesfully completed
FailedThe transcription feature has failed

Apart from the above status messages that denote the progress of overall VoiceAI request, there are more such messages to denote the progress of individual features in the request. They are,

StartedCompletedFailed
Language Detection StartedLanguage Detection CompletedLanguage Detection Failed
Speaker Diarization StartedSpeaker Diarization CompletedSpeaker Diarization Failed
Sentiment Detection StartedSentiment Detection CompletedSentiment Detection Failed
Summarization StartedSummarization CompletedSummarization Failed
Subtitles StartedSubtitles CompletedSubtitles Failed
Translation StartedTranslation CompletedTranslation Failed
Transcription StartedTranscription Completed

Troubleshooting and FAQ

Unhooked? Check out our FAQ page. If you still need help, feel free to reach out to us directly at support@neuralspace.ai or join our Slack community.