Jump to content

AlphaNotes GPT: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 112: Line 112:


==Conversation Starters==
==Conversation Starters==
* help
* Can you summarize this video? https://www.youtube.com/watch?v=azRndqqW7l0
* Can you generate notes for this article? https://docs.chainstack.com/docs/authentication-methods-for-different-scenarios
* Can you find YouTube videos on Thermodynamics


==Knowledge (Uploaded Files)==
==Knowledge (Uploaded Files)==


==Actions==
==Actions==
===Website===
ainotes.alphanotes.one
===Privacy Policy===
https://www.alphanotes.one/policy
===Auth===
<pre>
{"type":"oauth","instructions":"","client_url":"https://ainotes.alphanotes.one/oauth/authorize","scope":"all","authorization_url":"https://ainotes.alphanotes.one/oauth/token","authorization_content_type":"application/x-www-form-urlencoded","verification_tokens":{},"pkce_required":false,"token_exchange_method":"default_post"}
</pre>
===Code===
<pre>
{"openapi":"3.0.0","info":{"title":"AlphaNotes","version":"0.1.0","description":"This is the backend for a GPT that provides tools to create summaries and study aids for YouTube videos and web articles."},"paths":{"/create_summary":{"post":{"summary":"Create a summary of the video","operationId":"videoSummary","description":"This endpoint returns the title, the thumbnail's URL (show after title), and the transcript or video summary.  Use this endpoint when the user asks for a summary. Also follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate_notes":{"post":{"summary":"Generate notes and study aids for the video course","operationId":"generateNotes","description":"This endpoint returns the title, the thumbnail's URL, always show after title, and the transcript or already made notes. Use this endpoint when the user asks to generate notes or a study aid. Also follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoURL"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get_transcript":{"post":{"summary":"Get the transcript of a video","operationId":"videoTranscript","description":"This endpoint returns the title, the thumbnail's URL (show after title), the transcript of a video, and a pdf link. Use it when the user asks for the video transcript only. The user might ask follow up questions on it, so don't call other endpoints but use what you get.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create_pdf":{"post":{"summary":"Create PDF from Markdown and upload to File.io","operationId":"createPdf","description":"This endpoint converts Markdown text to PDF and provides a file.io link.  Use it for user requests to generate/create/make/export/print a PDF from generated content. Don't add dev contact in the pdf. Adapt Markdown for JSON input.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextModel"}}},"required":true},"responses":{"200":{"description":"Successfully Created PDF and Uploaded to Dropbox","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedLinkResponse"}}}},"400":{"description":"Dropbox API Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get_chunk":{"get":{"summary":"Retrieve a specific chunk of the video transcript if too long","operationId":"getChunk","description":"This endpoint returns a specific chunk of the video transcript based on a unique ID and chunk index. Use it when the plugin returns you a unique_id. Keep calling it until you get all the chunks.\n","parameters":[{"name":"unique_id","in":"query","description":"The unique ID associated with the video transcript","required":true,"schema":{"type":"string"}},{"name":"chunk_index","in":"query","description":"The index of the chunk to retrieve","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChunkResponse"}}}},"400":{"description":"Invalid chunk index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"404":{"description":"Invalid unique ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/summarize_article":{"post":{"summary":"Scrape an article and returns its content for summarization","operationId":"summarizeArticle","description":"This endpoint scrapes the content of an article and returns its content along with listing any YouTube links found in the article. Use this endpoint when the user asks for an article summary or gives a URL that is not from YouTube. Also, follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulArticleResponse"}}}},"404":{"description":"Article Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableArticleError"}}}},"413":{"description":"Article Too Long","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTooLongError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"Processing Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessingError"}}}}}}},"/take_notes_from_article":{"post":{"summary":"Scrape an article and returns its content for generating study aids","operationId":"notesArticle","description":"This endpoint scrapes the content of an article and returns it along with listing any YouTube links found. Use this endpoint when the user asks for making notes of an article or gives a URL that is not from YouTube asking for notes.  Also, follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulArticleResponse"}}}},"404":{"description":"Article Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableArticleError"}}}},"413":{"description":"Article Too Long","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTooLongError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"Processing Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessingError"}}}}}}},"/search_videos":{"post":{"summary":"Search for YouTube videos","operationId":"searchVideos","description":"This endpoint searches for YouTube videos based on the query term and region code using the YouTube API V3. Come up with a good search query based on what the user needs. Use the US region code if no region or language are specified.\n","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query_term":{"type":"string","description":"The search term for querying YouTube videos."},"region_code":{"type":"string","description":"The region code for filtering YouTube videos.","nullable":true}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"assistant_hint":{"type":"string"},"data":{"type":"string"}}}}}},"404":{"description":"Video Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"500":{"description":"Processing Error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/get_help":{"get":{"summary":"Get help description","description":"This endpoint returns a help description.","operationId":"getHelp","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"X-PluginLab-Ignore-Quota":{"schema":{"type":"string","example":"1"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"}}}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"type":"object","title":"HTTPValidationError","properties":{"detail":{"type":"array","title":"Detail","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","title":"ValidationError","required":["loc","msg","type"],"properties":{"loc":{"type":"array","title":"Location","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}}},"Video":{"type":"object","title":"Video","required":["url"],"properties":{"url":{"type":"string","title":"Url"}}},"VideoURL":{"type":"object","title":"VideoURL","required":["url"],"properties":{"url":{"type":"string","title":"Url"}}},"VideoResponse":{"type":"object","title":"VideoResponse","required":["title","thumbnail_url","token_count","content","assistant_hint"],"properties":{"title":{"type":"string","description":"The title of the video"},"thumbnail_url":{"type":"string","format":"uri","description":"The URL of the video thumbnail"},"token_count":{"type":"integer","description":"The token count"},"content":{"oneOf":[{"$ref":"#/components/schemas/Transcript"},{"$ref":"#/components/schemas/Summary"}]},"assistant_hint":{"type":"string","description":"The instructions to follow"}}},"NotesResponse":{"type":"object","title":"NotesResponse","required":["title","thumbnail_url","token_count","assistant_hint","content"],"properties":{"title":{"type":"string","description":"The title of the video"},"thumbnail_url":{"type":"string","format":"uri","description":"The URL of the video thumbnail"},"token_count":{"type":"integer","description":"The token count of the content"},"assistant_hint":{"type":"string","description":"The instructions to follow"},"content":{"oneOf":[{"$ref":"#/components/schemas/Transcript"},{"$ref":"#/components/schemas/Notes"}]}}},"Transcript":{"type":"string","description":"The full transcript of the video"},"Notes":{"type":"string","description":"The generated notes for the video"},"Summary":{"type":"string","description":"The generated summary of the video"},"TextModel":{"type":"object","title":"TextModel","required":["text"],"properties":{"text":{"type":"string","description":"Markdown text to be converted to PDF","example":"## This is a title\nThis is some text."}}},"SharedLinkResponse":{"type":"object","title":"SharedLinkResponse","required":["link"],"properties":{"link":{"type":"string","format":"uri","description":"Shareable Dropbox link of the uploaded PDF"}}},"ChunkResponse":{"type":"object","properties":{"unique_id":{"type":"string","description":"The unique ID associated with the video transcript"},"video_title":{"type":"string","description":"The title of the video"},"current_chunk_index":{"type":"integer","description":"The index of the current chunk"},"next_chunk_to_fetch":{"type":"integer","description":"The index of the next chunk to fetch"},"Chunks_left_to_fetch":{"type":"integer","description":"The number of chunks left to fetch"},"chunk":{"type":"object","description":"The content of the current chunk"}}},"Article":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}},"SuccessfulArticleResponse":{"type":"object","properties":{"article_content":{"type":"string"},"youtube_links":{"type":"array","items":{"type":"string"}},"source":{"type":"string","format":"uri"},"assistant_hint":{"type":"string"}}},"UnavailableArticleError":{"type":"object","properties":{"UNAVAILABLE_ARTICLE_ERROR":{"type":"string"}}},"ProcessingError":{"type":"object","properties":{"PROCESSING_ERROR":{"type":"string"}}},"ArticleTooLongError":{"type":"object","properties":{"ARTICLE_TOO_LONG":{"type":"string"}}}}},"servers":[{"url":"https://ainotes.alphanotes.one"}]}{"openapi":"3.0.0","info":{"title":"AlphaNotes","version":"0.1.0","description":"This is the backend for a GPT that provides tools to create summaries and study aids for YouTube videos and web articles."},"paths":{"/create_summary":{"post":{"summary":"Create a summary of the video","operationId":"videoSummary","description":"This endpoint returns the title, the thumbnail's URL (show after title), and the transcript or video summary.  Use this endpoint when the user asks for a summary. Also follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate_notes":{"post":{"summary":"Generate notes and study aids for the video course","operationId":"generateNotes","description":"This endpoint returns the title, the thumbnail's URL, always show after title, and the transcript or already made notes. Use this endpoint when the user asks to generate notes or a study aid. Also follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoURL"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get_transcript":{"post":{"summary":"Get the transcript of a video","operationId":"videoTranscript","description":"This endpoint returns the title, the thumbnail's URL (show after title), the transcript of a video, and a pdf link. Use it when the user asks for the video transcript only. The user might ask follow up questions on it, so don't call other endpoints but use what you get.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create_pdf":{"post":{"summary":"Create PDF from Markdown and upload to File.io","operationId":"createPdf","description":"This endpoint converts Markdown text to PDF and provides a file.io link.  Use it for user requests to generate/create/make/export/print a PDF from generated content. Don't add dev contact in the pdf. Adapt Markdown for JSON input.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextModel"}}},"required":true},"responses":{"200":{"description":"Successfully Created PDF and Uploaded to Dropbox","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedLinkResponse"}}}},"400":{"description":"Dropbox API Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get_chunk":{"get":{"summary":"Retrieve a specific chunk of the video transcript if too long","operationId":"getChunk","description":"This endpoint returns a specific chunk of the video transcript based on a unique ID and chunk index. Use it when the plugin returns you a unique_id. Keep calling it until you get all the chunks.\n","parameters":[{"name":"unique_id","in":"query","description":"The unique ID associated with the video transcript","required":true,"schema":{"type":"string"}},{"name":"chunk_index","in":"query","description":"The index of the chunk to retrieve","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChunkResponse"}}}},"400":{"description":"Invalid chunk index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"404":{"description":"Invalid unique ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/summarize_article":{"post":{"summary":"Scrape an article and returns its content for summarization","operationId":"summarizeArticle","description":"This endpoint scrapes the content of an article and returns its content along with listing any YouTube links found in the article. Use this endpoint when the user asks for an article summary or gives a URL that is not from YouTube. Also, follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulArticleResponse"}}}},"404":{"description":"Article Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableArticleError"}}}},"413":{"description":"Article Too Long","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTooLongError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"Processing Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessingError"}}}}}}},"/take_notes_from_article":{"post":{"summary":"Scrape an article and returns its content for generating study aids","operationId":"notesArticle","description":"This endpoint scrapes the content of an article and returns it along with listing any YouTube links found. Use this endpoint when the user asks for making notes of an article or gives a URL that is not from YouTube asking for notes.  Also, follow the instruction from the assistant_hint.\n","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulArticleResponse"}}}},"404":{"description":"Article Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableArticleError"}}}},"413":{"description":"Article Too Long","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleTooLongError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"Processing Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessingError"}}}}}}},"/search_videos":{"post":{"summary":"Search for YouTube videos","operationId":"searchVideos","description":"This endpoint searches for YouTube videos based on the query term and region code using the YouTube API V3. Come up with a good search query based on what the user needs. Use the US region code if no region or language are specified.\n","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query_term":{"type":"string","description":"The search term for querying YouTube videos."},"region_code":{"type":"string","description":"The region code for filtering YouTube videos.","nullable":true}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"assistant_hint":{"type":"string"},"data":{"type":"string"}}}}}},"404":{"description":"Video Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}},"500":{"description":"Processing Error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"}}}}}}}}},"/get_help":{"get":{"summary":"Get help description","description":"This endpoint returns a help description.","operationId":"getHelp","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"X-PluginLab-Ignore-Quota":{"schema":{"type":"string","example":"1"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"}}}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"type":"object","title":"HTTPValidationError","properties":{"detail":{"type":"array","title":"Detail","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"type":"object","title":"ValidationError","required":["loc","msg","type"],"properties":{"loc":{"type":"array","title":"Location","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}}},"Video":{"type":"object","title":"Video","required":["url"],"properties":{"url":{"type":"string","title":"Url"}}},"VideoURL":{"type":"object","title":"VideoURL","required":["url"],"properties":{"url":{"type":"string","title":"Url"}}},"VideoResponse":{"type":"object","title":"VideoResponse","required":["title","thumbnail_url","token_count","content","assistant_hint"],"properties":{"title":{"type":"string","description":"The title of the video"},"thumbnail_url":{"type":"string","format":"uri","description":"The URL of the video thumbnail"},"token_count":{"type":"integer","description":"The token count"},"content":{"oneOf":[{"$ref":"#/components/schemas/Transcript"},{"$ref":"#/components/schemas/Summary"}]},"assistant_hint":{"type":"string","description":"The instructions to follow"}}},"NotesResponse":{"type":"object","title":"NotesResponse","required":["title","thumbnail_url","token_count","assistant_hint","content"],"properties":{"title":{"type":"string","description":"The title of the video"},"thumbnail_url":{"type":"string","format":"uri","description":"The URL of the video thumbnail"},"token_count":{"type":"integer","description":"The token count of the content"},"assistant_hint":{"type":"string","description":"The instructions to follow"},"content":{"oneOf":[{"$ref":"#/components/schemas/Transcript"},{"$ref":"#/components/schemas/Notes"}]}}},"Transcript":{"type":"string","description":"The full transcript of the video"},"Notes":{"type":"string","description":"The generated notes for the video"},"Summary":{"type":"string","description":"The generated summary of the video"},"TextModel":{"type":"object","title":"TextModel","required":["text"],"properties":{"text":{"type":"string","description":"Markdown text to be converted to PDF","example":"## This is a title\nThis is some text."}}},"SharedLinkResponse":{"type":"object","title":"SharedLinkResponse","required":["link"],"properties":{"link":{"type":"string","format":"uri","description":"Shareable Dropbox link of the uploaded PDF"}}},"ChunkResponse":{"type":"object","properties":{"unique_id":{"type":"string","description":"The unique ID associated with the video transcript"},"video_title":{"type":"string","description":"The title of the video"},"current_chunk_index":{"type":"integer","description":"The index of the current chunk"},"next_chunk_to_fetch":{"type":"integer","description":"The index of the next chunk to fetch"},"Chunks_left_to_fetch":{"type":"integer","description":"The number of chunks left to fetch"},"chunk":{"type":"object","description":"The content of the current chunk"}}},"Article":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}},"SuccessfulArticleResponse":{"type":"object","properties":{"article_content":{"type":"string"},"youtube_links":{"type":"array","items":{"type":"string"}},"source":{"type":"string","format":"uri"},"assistant_hint":{"type":"string"}}},"UnavailableArticleError":{"type":"object","properties":{"UNAVAILABLE_ARTICLE_ERROR":{"type":"string"}}},"ProcessingError":{"type":"object","properties":{"PROCESSING_ERROR":{"type":"string"}}},"ArticleTooLongError":{"type":"object","properties":{"ARTICLE_TOO_LONG":{"type":"string"}}}}},"servers":[{"url":"https://ainotes.alphanotes.one"}]}
</pre>


==Guide==
==Guide==
1,065

edits