Skip to content

Commit

Permalink
Fix issues for submiting a app
Browse files Browse the repository at this point in the history
  • Loading branch information
toru-takahashi committed Apr 17, 2023
1 parent 38cfb66 commit a47aa82
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,22 @@ This Zendesk App (Zendesk OpenAI Draft Proofreading) helps Zendesk Agent to writ

1. Install this app via Zendesk Marketplace
2. Set OpenAI's APIKEY in the app setting

![README](./readme.png)

3. In Zendesk Ticket view, select one of 4 options;

- Draft (ja): Send the ticket conversation to OpenAI and then insert the generated response in Japanese to the comment
- Proofread (en): Send a text in the ticket comment to OpenAI and then insert the reviewed response in Japanese to the comment
- Draft (ja): Send the ticket conversation to OpenAI and then insert the generated response in English to the comment
- DrProofreadaft (en): Send a text in the ticket comment to OpenAI and then insert the reviewed response in English to the comment

![README](./readme.png)
![README](./readme-1.png)

4. This app automatically inserts the response to the text box.

![README](./readme-2.png)


## License

Expand Down
2 changes: 1 addition & 1 deletion assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function getSummary(client, prompt) {
const response = await client.request(options);
return response.choices[0].message.content.trim().replace(/(?:\r\n|\r|\n)/g, '<br>');
} catch (e) {
console.log(e);
client.invoke('ticket.editor.insert', e.message);
client.invoke('app.close');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/toru-takahashi"
},
"defaultLocale": "en",
"private": true,
"private": false,
"location": {
"support": {
"ticket_editor": "assets/iframe.html"
Expand Down
Binary file added readme-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"app": {
"name": "Zendesk OpenAI Draft Proofreading",
"short_description": "Use OpenAI's ChatGPT to make and profread your ticket response.",
"long_description": "Use OpenAI's ChatGPT to make and profread your ticket response.",
"long_description": "Use OpenAI's ChatGPT to make and profread your ticket response.\n",
"installation_instructions": "Add your OpenAI API key and click install.",
"parameters": {
"openAiApiToken" : {
Expand Down

0 comments on commit a47aa82

Please sign in to comment.