ID curl --request POST ¥ --url https://api.openai.com/v1/audio/transcriptions ¥ --header "Authorization: Bearer $OPENAI_API_KEY" ¥ --header 'Content-Type: multipart/form-data' ¥ --form file=@/path/to/file/speech.mp3 ¥ --form model=whisper-1 ¥ --form response_format=text response text = `Can I get a product list` And we use OpenAI speech to text API
Shopping API curl https://developers-oaplus.line.biz/myshop/v1/products ¥ --header “X-API-KEY: Bearer $LINE_SHOPPING_API_KEY” ¥ --header ‘Content-Type: application/json‘ We then use normal LINE Messaging Reply API to reply to user 🤓 🥳
to Get Message Content by Message ID to get audio Use OpenAI Speech to text to convert audio to text We get “Update inventory of LINE dev t-shirt to 20” 🤓 🥳
at structured data extraction. You will be given json response from api and should parse inventory id" }, { "role": "system", "content": "extract inventory id for เสื$อไลน์เดฟ with following: { … // JSON … }” } ], 🤓 🥳