[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"marketplace-site-banners":3,"github-stars":9,"@directus-labs\u002Fai-transcription-operation":115},[4],{"id":5,"icon":6,"content":7,"link":8,"include_paths":6,"exclude_paths":6},"5cf2f5f6-aecf-4395-8c23-69de326fdf02",null,"Directus V12 is here","https:\u002F\u002Fdirectus.com\u002Fresources\u002Fv12-built-for-the-whole-team",{"id":10,"node_id":11,"name":12,"full_name":13,"private":14,"owner":15,"html_url":33,"description":34,"fork":14,"url":35,"forks_url":36,"keys_url":37,"collaborators_url":38,"teams_url":39,"hooks_url":40,"issue_events_url":41,"events_url":42,"assignees_url":43,"branches_url":44,"tags_url":45,"blobs_url":46,"git_tags_url":47,"git_refs_url":48,"trees_url":49,"statuses_url":50,"languages_url":51,"stargazers_url":52,"contributors_url":53,"subscribers_url":54,"subscription_url":55,"commits_url":56,"git_commits_url":57,"comments_url":58,"issue_comment_url":59,"contents_url":60,"compare_url":61,"merges_url":62,"archive_url":63,"downloads_url":64,"issues_url":65,"pulls_url":66,"milestones_url":67,"notifications_url":68,"labels_url":69,"releases_url":70,"deployments_url":71,"created_at":72,"updated_at":73,"pushed_at":74,"git_url":75,"ssh_url":76,"clone_url":77,"svn_url":33,"homepage":78,"size":79,"stargazers_count":80,"watchers_count":80,"language":81,"has_issues":82,"has_projects":82,"has_downloads":82,"has_wiki":14,"has_pages":14,"has_discussions":82,"forks_count":83,"mirror_url":6,"archived":14,"disabled":14,"open_issues_count":84,"license":85,"allow_forking":82,"is_template":14,"web_commit_signoff_required":14,"has_pull_requests":82,"pull_request_creation_policy":90,"topics":91,"visibility":32,"forks":83,"open_issues":84,"watchers":80,"default_branch":111,"temp_clone_token":6,"custom_properties":112,"organization":113,"network_count":83,"subscribers_count":114},7122594,"MDEwOlJlcG9zaXRvcnk3MTIyNTk0","directus","directus\u002Fdirectus",false,{"login":12,"id":16,"node_id":17,"avatar_url":18,"gravatar_id":19,"url":20,"html_url":21,"followers_url":22,"following_url":23,"gists_url":24,"starred_url":25,"subscriptions_url":26,"organizations_url":27,"repos_url":28,"events_url":29,"received_events_url":30,"type":31,"user_view_type":32,"site_admin":14},15967950,"MDEyOk9yZ2FuaXphdGlvbjE1OTY3OTUw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15967950?v=4","","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus","https:\u002F\u002Fgithub.com\u002Fdirectus","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Ffollowers","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Ffollowing{\u002Fother_user}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fgists{\u002Fgist_id}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fstarred{\u002Fowner}{\u002Frepo}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fsubscriptions","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Forgs","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Frepos","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fevents{\u002Fprivacy}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Freceived_events","Organization","public","https:\u002F\u002Fgithub.com\u002Fdirectus\u002Fdirectus","The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fforks","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fkeys{\u002Fkey_id}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcollaborators{\u002Fcollaborator}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fteams","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fhooks","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fissues\u002Fevents{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fevents","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fassignees{\u002Fuser}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fbranches{\u002Fbranch}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Ftags","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Fblobs{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Ftags{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Frefs{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Ftrees{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fstatuses\u002F{sha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Flanguages","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fstargazers","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcontributors","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fsubscribers","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fsubscription","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcommits{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Fcommits{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcomments{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fissues\u002Fcomments{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcontents\u002F{+path}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcompare\u002F{base}...{head}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fmerges","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002F{archive_format}{\u002Fref}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fdownloads","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fissues{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fpulls{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fmilestones{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fnotifications{?since,all,participating}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Flabels{\u002Fname}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Freleases{\u002Fid}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fdeployments","2012-12-12T01:35:36Z","2026-07-18T05:08:19Z","2026-07-17T21:10:45Z","git:\u002F\u002Fgithub.com\u002Fdirectus\u002Fdirectus.git","git@github.com:directus\u002Fdirectus.git","https:\u002F\u002Fgithub.com\u002Fdirectus\u002Fdirectus.git","https:\u002F\u002Fdirectus.com",447310,36507,"TypeScript",true,4850,399,{"key":86,"name":87,"spdx_id":88,"url":6,"node_id":89},"other","Other","NOASSERTION","MDc6TGljZW5zZTA=","all",[92,93,94,95,96,97,12,98,99,100,101,102,103,104,105,106,107,108,109,110],"api","app","cms","composable","data-visualization","database","graphql","headless-cms","javascript","mariadb","mssql","mysql","no-code","node","postgresql","sql","sqlite","typescript","vue","main",{},{"login":12,"id":16,"node_id":17,"avatar_url":18,"gravatar_id":19,"url":20,"html_url":21,"followers_url":22,"following_url":23,"gists_url":24,"starred_url":25,"subscriptions_url":26,"organizations_url":27,"repos_url":28,"events_url":29,"received_events_url":30,"type":31,"user_view_type":32,"site_admin":14},326,{"name":116,"description":117,"verified":14,"id":118,"readme":119,"type":120,"last_updated":121,"host_version":122,"downloads":123,"total_downloads":126,"sandbox":82,"license":192,"publisher":193,"versions":202,"formatted_name":323,"formatted_readme":324,"formatted_description":117,"images":325,"recent_downloads_7_days":327,"recent_downloads_30_days":328},"@directus-labs\u002Fai-transcription-operation","Use Deepgram's Speech Recognition API to generate transcripts from audio files.","eb559006-2dd0-40c0-b11c-a0e8c0070f4c","# AI Transcription Operation\n\nGenerate transcripts from audio files within Directus Flows with this custom operation, powered by [Deepgram](https:\u002F\u002Fdeepgram.com).\n\n![The AI Transcription operation, showing a Deepgram API Key field and a File URL field.](https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Foptions.png)\n\nThis operation contains the following configuration options:\n\n**Required**\n- [Deepgram API Key](https:\u002F\u002Fconsole.deepgram.com)\n- File URL - public URL of the file to transcribe\n\n**Optional**\n- Callback URL - process the transcript asynchronously by providing a callback URL.  The Deepgram API will make a POST request to this url once transcription is completed.\n- Diarization - include speaker changes in the transcript.\n- Keywords - Uncommon proper nouns or other words to transcribe that are not a part of the model’s vocabulary. These follow this format `keyword:intensifer`.\n\n---\n\nIf a Callback URL is NOT provided, the operation returns a JSON object containing the transcript, a breakdown of each word and timestamp, a paragraph-formatted transcript, and a breakdown of each paragraph and timestamp.\n\n![The output showing a JSON object containing a transcript and words.](https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Foutput.png)\n\nYou can use the operation to then save the result to a file description or item, or run further automation on the output.\n\n---\n\nIf a Callback URL is provided, the operation does not wait for the transcript to finish generation. It immediately returns a JSON object containing the `request_id` provided by the Deepgram API and a message confirming successful submission.\n\n![The output showing a JSON object containing a confirmation message and request_id.](https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Fcallback.png)\n\nThe `request_id` should be stored and used to identify the incoming transcript from Deepgram.\n\nOnce the transcript has been generated, the Deepgram API will make a `POST` request to the Callback URL you have provided.  The `request_id` will be included in the metadata of that request.\n\nMake sure that your Callback URL is configured to accept and handle the response from Deepgram's API. This could be another Directus Flow with an incoming Webhook Trigger or some other system.\n\n\n## Output\n\nIf no Callback URL is provided, the operation outputs a JSON object with the following structure:\n\n```json\n{\n    \"confidence\": 0.9995117,\n    \"transcript\": \"Hi. This is a long string with the full transcript. Complete with punctuation and capitalization.\"\n    \"words\": [\n        {\n            \"confidence\": 0.9995117,\n            \"word\": \"word\",\n            \"punctuated_word\": \"Hi.\",\n            \"start\": 0.08,\n            \"end\": 0.3999998,\n        }\n    ],\n    \"paragraphs\": {\n        \"transcript\": \"Hi.\\n\\nThis is a long string with the full transcript.\\n\\nComplete with punctuation and capitalization.\",\n        \"paragraphs\": [\n            {\n                \"sentences\": [\n                    {\n                        \"start\": 0.08,\n                        \"end\": 0.3999998,\n                        \"text\": \"Hi.\"\n                    }\n                ],\n                \"num_words\": 14,\n                \"start\": 0.08,\n                \"end\": 0.7075\n            }\n        ]\n    }\n}\n```\n\nIf a Callback URL is provided, the operation outputs a JSON object with the following structure:\n\n```json\n{\n  \"request_id\": \"42fc4c2b-09b3-4f5f-af04-3d1c9e9dc185\",\n  \"message\": \"Transcription request submitted for processing.\"\n}\n```\n\n## Flow Setup\n\n### Automatically Transcribe New Files\n\nCreate a Flow with an **Event Hook** action trigger and a scope of `files.upload`. Use the AI Transciption operation, setting the File URL to `https:\u002F\u002Fyour-directus-project-url\u002Fassets\u002F{{ $trigger.key }}`, being sure to provide your specific Directus Project URL.\n\nThis will work if your file is public, but if it isn't, you can append `?access_token=token` to the File URL, replacing the value with a valid user token that has access to the file.\n\nThis operation will trigger on every new file upload, regardless of location or filetype. You may wish to add a conditional step between the trigger and transcription operation. The following condition rule will check that the file is audio:\n\n```json\n{\n    \"$trigger\": {\n        \"payload\": {\n            \"type\": {\n                \"_contains\": \"audio\"\n            }\n        }\n    }\n}\n```\n\n### Transcribe On-Demand\n\nCreate a Flow with a **Manual** trigger and select a collection with a file field, which should contain an audio file. Set the Location to Item Page Only. To receive the file ID create a **Read Data** operation for the same collection, setting IDs to `{{ $trigger.body.keys[0] }}`.\n\nUse the AI Transciption operation, setting the File URL to `https:\u002F\u002Fyour-directus-project-url\u002Fassets\u002F{{ $last.file_field_name }}`, being sure to provide your specific Directus Project URL and file field name.\n","operation","2024-12-18T11:13:29.953Z","^10.10.0",[124,127,130,132,134,136,139,141,143,145,147,149,152,155,157,159,162,165,168,170,172,174,176,178,180,182,184,186,188,190],{"date":125,"count":126},"2026-06-17",0,{"date":128,"count":129},"2026-06-18",14,{"date":131,"count":126},"2026-06-19",{"date":133,"count":126},"2026-06-20",{"date":135,"count":126},"2026-06-21",{"date":137,"count":138},"2026-06-22",6,{"date":140,"count":126},"2026-06-23",{"date":142,"count":126},"2026-06-24",{"date":144,"count":126},"2026-06-25",{"date":146,"count":126},"2026-06-26",{"date":148,"count":126},"2026-06-27",{"date":150,"count":151},"2026-06-28",3,{"date":153,"count":154},"2026-06-29",9,{"date":156,"count":126},"2026-06-30",{"date":158,"count":151},"2026-07-01",{"date":160,"count":161},"2026-07-02",1,{"date":163,"count":164},"2026-07-03",5,{"date":166,"count":167},"2026-07-04",4,{"date":169,"count":161},"2026-07-05",{"date":171,"count":151},"2026-07-06",{"date":173,"count":126},"2026-07-07",{"date":175,"count":161},"2026-07-08",{"date":177,"count":126},"2026-07-09",{"date":179,"count":129},"2026-07-10",{"date":181,"count":126},"2026-07-11",{"date":183,"count":126},"2026-07-12",{"date":185,"count":161},"2026-07-13",{"date":187,"count":126},"2026-07-14",{"date":189,"count":126},"2026-07-15",{"date":191,"count":161},"2026-07-16","MIT",{"username":194,"verified":82,"id":195,"github_username":194,"github_name":196,"github_blog":197,"github_bio":198,"github_location":199,"github_company":200,"github_avatar_url":201},"ukmadlz","74ce2e77-733a-4e9a-b96d-93bf6264f622","Mike Elsmore","http:\u002F\u002Felsmore.me","(╯°□°）╯︵ TABLEFLIP","UK","@DigitalSpeed","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F804683?v=4",[203,221,236,251,266,280,294,309],{"version":204,"package":118,"publisher":205,"type":120,"host_version":122,"publish_date":206,"verified":14,"id":207,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":208,"sandbox":82,"sandbox_requested_scopes":209,"license":192,"bundled":216,"maintainers":217},"1.1.0","85f85c84-9af0-4ba7-a30f-3617605d412b","2024-05-09T19:27:54.632Z","05c0842a-e6ea-4793-ace3-4c91a4e5c8c4",9470,{"request":210,"log":215},{"urls":211,"methods":213},[212],"https:\u002F\u002Fapi.deepgram.com\u002Fv1\u002F**",[214],"POST",{},[],[218,219,220],10823,10824,10825,{"version":222,"package":118,"publisher":223,"type":120,"host_version":122,"publish_date":224,"verified":14,"id":225,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":226,"sandbox":82,"sandbox_requested_scopes":227,"license":6,"bundled":231,"maintainers":232},"1.0.0","8486d50d-a6bc-45c6-8627-60f3c144732c","2024-03-12T20:34:56.588Z","4249768e-d50d-47ef-8d8a-ea79e455cfa7",4295,{"request":228},{"urls":229,"methods":230},[212],[214],[],[233,234,235],10494,10495,10496,{"version":237,"package":118,"publisher":195,"type":120,"host_version":122,"publish_date":121,"verified":14,"id":238,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":239,"sandbox":82,"sandbox_requested_scopes":240,"license":192,"bundled":245,"maintainers":246},"1.1.1","455e9b13-bdf9-434c-a4cb-3ea2029fde4e",8395,{"request":241,"log":244},{"urls":242,"methods":243},[212],[214],{},[],[247,248,249,250],11723,11724,11725,11726,{"version":252,"package":118,"publisher":223,"type":120,"host_version":122,"publish_date":253,"verified":14,"id":254,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":255,"sandbox":82,"sandbox_requested_scopes":256,"license":192,"bundled":261,"maintainers":262},"1.0.4","2024-03-13T08:01:46.919Z","8cdcc8c1-d1b6-46be-9abd-8c31fd93301a",5335,{"request":257,"log":260},{"urls":258,"methods":259},[212],[214],{},[],[263,264,265],10506,10507,10508,{"version":267,"package":118,"publisher":223,"type":120,"host_version":122,"publish_date":268,"verified":14,"id":269,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":270,"sandbox":82,"sandbox_requested_scopes":271,"license":192,"bundled":275,"maintainers":276},"1.0.2","2024-03-13T07:03:41.432Z","9b817a59-556e-471d-96d2-276793a33d04",5313,{"request":272},{"urls":273,"methods":274},[212],[214],[],[277,278,279],10500,10501,10502,{"version":281,"package":118,"publisher":223,"type":120,"host_version":122,"publish_date":282,"verified":14,"id":283,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":284,"sandbox":82,"sandbox_requested_scopes":285,"license":192,"bundled":289,"maintainers":290},"1.0.3","2024-03-13T07:59:06.222Z","ae12e89d-85ba-4b96-8acf-0a011b368e73",5320,{"request":286},{"urls":287,"methods":288},[212],[214],[],[291,292,293],10503,10504,10505,{"version":295,"package":118,"publisher":223,"type":120,"host_version":122,"publish_date":296,"verified":14,"id":297,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":298,"sandbox":82,"sandbox_requested_scopes":299,"license":192,"bundled":304,"maintainers":305},"1.0.5","2024-03-14T11:51:24.342Z","d1db17a2-a39f-41c9-8fc6-4f3dab794c69",5355,{"request":300,"log":303},{"urls":301,"methods":302},[212],[214],{},[],[306,307,308],10527,10528,10529,{"version":310,"package":118,"publisher":223,"type":120,"host_version":122,"publish_date":311,"verified":14,"id":312,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":167,"unpacked_size":313,"sandbox":82,"sandbox_requested_scopes":314,"license":6,"bundled":318,"maintainers":319},"1.0.1","2024-03-13T07:01:19.519Z","e97da3f0-3871-4638-b069-077b72aa6001",5294,{"request":315},{"urls":316,"methods":317},[212],[214],[],[320,321,322],10497,10498,10499,"AI Transcription Operation","\u003Ch1>AI Transcription Operation\u003C\u002Fh1>\n\u003Cp>Generate transcripts from audio files within Directus Flows with this custom operation, powered by \u003Ca href=\"https:\u002F\u002Fdeepgram.com\">Deepgram\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Foptions.png\" alt=\"The AI Transcription operation, showing a Deepgram API Key field and a File URL field.\">\u003C\u002Fp>\n\u003Cp>This operation contains the following configuration options:\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Required\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fconsole.deepgram.com\">Deepgram API Key\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>File URL - public URL of the file to transcribe\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Optional\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Callback URL - process the transcript asynchronously by providing a callback URL.  The Deepgram API will make a POST request to this url once transcription is completed.\u003C\u002Fli>\n\u003Cli>Diarization - include speaker changes in the transcript.\u003C\u002Fli>\n\u003Cli>Keywords - Uncommon proper nouns or other words to transcribe that are not a part of the model’s vocabulary. These follow this format \u003Ccode>keyword:intensifer\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Chr>\n\u003Cp>If a Callback URL is NOT provided, the operation returns a JSON object containing the transcript, a breakdown of each word and timestamp, a paragraph-formatted transcript, and a breakdown of each paragraph and timestamp.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Foutput.png\" alt=\"The output showing a JSON object containing a transcript and words.\">\u003C\u002Fp>\n\u003Cp>You can use the operation to then save the result to a file description or item, or run further automation on the output.\u003C\u002Fp>\n\u003Chr>\n\u003Cp>If a Callback URL is provided, the operation does not wait for the transcript to finish generation. It immediately returns a JSON object containing the \u003Ccode>request_id\u003C\u002Fcode> provided by the Deepgram API and a message confirming successful submission.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Fcallback.png\" alt=\"The output showing a JSON object containing a confirmation message and request_id.\">\u003C\u002Fp>\n\u003Cp>The \u003Ccode>request_id\u003C\u002Fcode> should be stored and used to identify the incoming transcript from Deepgram.\u003C\u002Fp>\n\u003Cp>Once the transcript has been generated, the Deepgram API will make a \u003Ccode>POST\u003C\u002Fcode> request to the Callback URL you have provided.  The \u003Ccode>request_id\u003C\u002Fcode> will be included in the metadata of that request.\u003C\u002Fp>\n\u003Cp>Make sure that your Callback URL is configured to accept and handle the response from Deepgram's API. This could be another Directus Flow with an incoming Webhook Trigger or some other system.\u003C\u002Fp>\n\u003Ch2>Output\u003C\u002Fh2>\n\u003Cp>If no Callback URL is provided, the operation outputs a JSON object with the following structure:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-json\">{\n    \"confidence\": 0.9995117,\n    \"transcript\": \"Hi. This is a long string with the full transcript. Complete with punctuation and capitalization.\"\n    \"words\": [\n        {\n            \"confidence\": 0.9995117,\n            \"word\": \"word\",\n            \"punctuated_word\": \"Hi.\",\n            \"start\": 0.08,\n            \"end\": 0.3999998,\n        }\n    ],\n    \"paragraphs\": {\n        \"transcript\": \"Hi.\\n\\nThis is a long string with the full transcript.\\n\\nComplete with punctuation and capitalization.\",\n        \"paragraphs\": [\n            {\n                \"sentences\": [\n                    {\n                        \"start\": 0.08,\n                        \"end\": 0.3999998,\n                        \"text\": \"Hi.\"\n                    }\n                ],\n                \"num_words\": 14,\n                \"start\": 0.08,\n                \"end\": 0.7075\n            }\n        ]\n    }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>If a Callback URL is provided, the operation outputs a JSON object with the following structure:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-json\">{\n  \"request_id\": \"42fc4c2b-09b3-4f5f-af04-3d1c9e9dc185\",\n  \"message\": \"Transcription request submitted for processing.\"\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>Flow Setup\u003C\u002Fh2>\n\u003Ch3>Automatically Transcribe New Files\u003C\u002Fh3>\n\u003Cp>Create a Flow with an \u003Cstrong>Event Hook\u003C\u002Fstrong> action trigger and a scope of \u003Ccode>files.upload\u003C\u002Fcode>. Use the AI Transciption operation, setting the File URL to \u003Ccode>https:\u002F\u002Fyour-directus-project-url\u002Fassets\u002F{{ $trigger.key }}\u003C\u002Fcode>, being sure to provide your specific Directus Project URL.\u003C\u002Fp>\n\u003Cp>This will work if your file is public, but if it isn't, you can append \u003Ccode>?access_token=token\u003C\u002Fcode> to the File URL, replacing the value with a valid user token that has access to the file.\u003C\u002Fp>\n\u003Cp>This operation will trigger on every new file upload, regardless of location or filetype. You may wish to add a conditional step between the trigger and transcription operation. The following condition rule will check that the file is audio:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-json\">{\n    \"$trigger\": {\n        \"payload\": {\n            \"type\": {\n                \"_contains\": \"audio\"\n            }\n        }\n    }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Transcribe On-Demand\u003C\u002Fh3>\n\u003Cp>Create a Flow with a \u003Cstrong>Manual\u003C\u002Fstrong> trigger and select a collection with a file field, which should contain an audio file. Set the Location to Item Page Only. To receive the file ID create a \u003Cstrong>Read Data\u003C\u002Fstrong> operation for the same collection, setting IDs to \u003Ccode>{{ $trigger.body.keys[0] }}\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Use the AI Transciption operation, setting the File URL to \u003Ccode>https:\u002F\u002Fyour-directus-project-url\u002Fassets\u002F{{ $last.file_field_name }}\u003C\u002Fcode>, being sure to provide your specific Directus Project URL and file field name.\u003C\u002Fp>\n",[326],"https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fai-transcription-operation\u002Fdocs\u002Foutput.png",2,52]