Q: Hi Alec - thanks for you replies to my questions, but unfortunately, you missed the following about the API ...
example:
The provided API example (on the website) is great, but only reference a Google search.
Could you kindly provide an example that uses several documents and then reference these, to provide an answer?
alecngn
Jun 27, 2024A: Hi there, my apologies on missing your question. I've talked to my CTO a bit further to asnwer your question. Below is our API example. It's quite long so I'll submit them in segments.
Chatbot connected to two URLs https://afforai.com and https://afforai.com/pricing
Method: POST https://api.afforai.com/api/api_completion
Body:
{
"apiKey": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", //Can be found in API section
"sessionID": "XXXXXXXXXXXXXXXXXXXXXXXX", //Can be found in the chatbot setting
"history": [
{"role": "user", "content": "What is Afforai?"}
],
"powerful": true,
"google": false
}
Response:
{
"success": true,
"output": {
"completion": "Afforai is a powerful AI chatbot developed by Afforai. It is designed to assist users in retrieving specific information from documents, files, spreadsheets, and websites. Afforai can seamlessly translate documents into more than 100 languages and filter out irrelevant information, providing users with accurate and relevant answers to their questions. It offers different modes, including Fast Mode, Powerful Mode, and Google Mode, each with unique ways of utilizing AI tools to answer questions. Afforai is trusted by users worldwide and is known for its unbreakable security and exceptional customer focus.",
"google_citations": [],
"file_citations": [
{
"name": "https://afforai.com",
"type": "url",
"page": 12,
"content": "Further power your questions with additional modes. Afforai allows you to switch betweenAfforai\nthree different modes, each which have unique ways of utilising our AI tools to answer\nyour question(s).\nFast Mode (default) 1 credit\nQuickly ask a question and receive an answer from the AI. This mode is most suited for\napplications that require only a small part of the documents to be scanned (ex. FAQ Chatbot,\nSearch).\nPowerful Mode 4 credits\nGet answers of extra high quality from the AI. This mode is most suited for applications that\nrequire inferences as well as the full documents to be scanned (ex. Textual Data Analysis,\nSearch with Inference, Report Generation).\nGoogle Mode 5 credits\nSupplement your answers with the top 3 results from Google Search. This adds extra reliability\nto back up our already incredibly accurate answers.\nUnquestionable accuracy & reliability\nWe pride ourselves on the quality of our chatbotʼs responses, and go\nthe extra mile to ensure the accuracy & reliability of our answers."
},
{
"name": "https://afforai.com",
"type": "url",
"page": 13,
"content": "Trusted by users all over the WorldAfforai\nAfforai is used all around the World, saving thousands of people time and money with our\nspeed & accuracy.\nInformation filtering\nAfforai gives you the highest quality answers, and filters out any irrelevant information.\nBuilt in Comprehension Model\nOur powerful comprehension model increases the power of our data retrieval."
},
{
"name": "https://afforai.com",
"type": "url",
"page": 8,
"content": "Afforai uses Azure Server & Azure OpenAI API. In other words, your data is more than safe with us.Afforai\nCreate multiple chatbots for different\npurposes\nLegal documents? Summarising a book? Extracting data from a website? We allow you\nto create multiple chatbots at one time, so you can use Afforai for a whole range of\npurposes.\nGet started View pricing\nSave hundreds of hours of your time\nwith Afforai\nPeople spend 9 hours a week just to gather information from documents. Thatʼs\nover 432 hours per year! Afforai can save you up to 400 hours per year when it\ncomes to reading & extracting data from documents, saving thousands of Dollars in\nthe process."
},
{
"name": "https://afforai.com",
"type": "url",
"page": 5,
"content": "AfforaiNEWCross Language Querying \nAfforai is able to translate your documents to more than 100 languages, meaning wherever youʼre from, you can\nbe assured we can help.\nMultiple file types supported\nAfforai can extract data from a multitude of formats, including; PDF, URL, DOCX, PPTX & XLSX, as well as your\nown text & links from Websites. The possibilities are limitless!"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 3,
"content": "AfforaiSay goodbye to long, tiresome\ndocuments\nAfforai seamlessly translates documents, files, spreadsheets & websites, filtering out\nwhat you donʼt need & answering your specific questions within seconds.\nA whip smart research assistant\nWe speak every language\nReliable data citation for answers\nFort-Knox level data security"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 9,
"content": "AfforaiRegardless of where you are from,\nAfforai is for you\nWe support more than 100 Languages, meaning you can seamlessly use our services\nregardless of where you are from. Our Cross Language Querying feature also allows\nflawless translation of documents."
},
{
"name": "https://afforai.com",
"type": "url",
"page": 7,
"content": "AfforaiUnbreakable Security"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 10,
"content": "Afforai"
},
{
"name": "https://afforai.com/pricing",
"type": "url",
"page": 5,
"content": "We crafted Afforai with total belief in our ability to make a Chatbot that is not only powerful andAfforai\nreliable, but able to maximise your satisfaction as a user. This is why we have implemented a\nmoney back guarantee if you find yourself not satisfied with the capabilities of Afforai.\nFAQs\nAsk us anything at [email protected](mailto:[email protected])\nIs Afforai free?\nWhat are subscription credits versus permanent credits?\nDoes Afforai support documents storing on the cloud like Google\nDrive, One Drive, or Drop Box?"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 15,
"content": "We crafted Afforai with total belief in our ability to make a Chatbot that is not onlyAfforai\npowerful and reliable, but able to maximise your satisfaction as a user. This is why we\nhave implemented a money back guarantee if you find yourself not satisfied with the\ncapabilities of Afforai.\nGet started with Afforai\nJoin an ever-growing community, and get started free of charge!\nGet started View pricing"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 16,
"content": "AfforaiFAQs\nAsk us anything at [email protected](mailto:[email protected])\nIs Afforai free?\nWhat are subscription credits versus permanent credits?\nDoes Afforai support documents storing on the cloud like\nGoogle Drive, One Drive, or Drop Box?\nDoes Afforai support uploading images and video?\nDoes Afforai support collaboration between accounts?\nIs my data secured?Company\nResources\nFollow us\nLanguage\nAfforai \nContact Form\nTerms & Conditions\nTwitter\nEnglish"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 14,
"content": "AfforaiSee what our users say\nLoved by thousands, all around the World\nve signed up and starting testing Afforai Ask for my next project's\nThe platfo\nusiness model, and I have had a great experience so far. It has been\nsubscript\nxactly what I needed with its fast response times. For now, I am\nrecomme\nonsidering purchasing the Afforai - Lite Plan.\nwriting, a\nBayu Wilanda, Web & App Developer\nGhu\nAfforai has so many different applications and yet doesn't feel\noverwhelming. It's streamlined and feels fun to use, and the developers\nclearly put time into making it simple to use. Definitely worth my\ninvestment!\nDaniel Crook, Content\n100% money back guaranteed if you\nare not satisfied"
},
{
"name": "https://afforai.com/pricing",
"type": "url",
"page": 6,
"content": "Does Afforai support uploading images and video?Afforai\nDoes Afforai support collaboration between accounts?\nIs my data secured?Company\nResources\nFollow us\nLanguage\nAfforai \nContact Form\nTerms & Conditions\nTwitter\nEnglish\nPartners & Sponsors\nPrivacy Policy\nProduct Hunt\nVietnamese\nAPI Documentation\nLinkedIn"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 11,
"content": "AfforaiCustomize your assistant with a range\nof different modes"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 4,
"content": "AfforaiBuilt for the user\nAfforai is where exceptional customer focus meets\nexceptional technology."
},
{
"name": "https://afforai.com/pricing",
"type": "url",
"page": 4,
"content": "Live DocumentAfforai\nView\nPrompt Library\nDownload\nConversation\nCredit Pricing Breakdown1 credit/10 pages\nUpload Files 1 credit\nDefault Mode Answer 5 credits\nGoogle Mode Answer 4 credits\nPowerful Mode Answer 10 credits\nPowerful + Google Mode Answer \n100% money back guaranteed if you are not\nsatisfied"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 2,
"content": "AfforaiEmpowered By"
},
{
"name": "https://afforai.com",
"type": "url",
"page": 17,
"content": "Partners & Sponsors Privacy Policy\nProduct Hunt\nVietnameseAfforai\nAPI Documentation\nLinkedIn"
}
]
}
}
Hope that helps. I'm on standby and ready to assist you further.