Custom API Script and Plugins for Generative AI in Accounting

Application Programming Interface
API (Surrealist Style), Created by Microsoft Copilot (Powered by DALL-E 3) from Microsoft

Last time we looked at the manual use of generative AI in accounting. We noted the limitations of manual use in larger-scale accounting operations. As such we recommended using custom application programming interface (API) scripts and plugins where and when manual operations can become tedious.

On the one hand, custom API scripts are pieces of code, e.g., Python or PHP, that you can write and execute through the OpenAI API or in the OpenAI Playground. You can also use custom API scripts to access external data sources or services, such as web scraping, databases, or other APIs. Also, they allow you to customize the behaviour and output of ChatGPT by using various parameters, such as temperature, frequency_penalty, presence_penalty, stop, and logprobs. Custom API scripts give you more flexibility and control over how ChatGPT responds to your queries, but they also require more technical skills and effort to write and maintain.

On the other hand, plugins are pre-built, ready-made/off-the-shelf APIs you can enable within ChatGPT without writing any code. They are designed to add specific functionality or knowledge to ChatGPT, such as accounting, weather, translation, math, trivia, &c. Plugins are created and maintained by OpenAI or third-party developers, and they are available in the ChatGPT marketplace. Plugins make it easier and faster to enhance ChatGPT with useful features. Still, they also have some limitations, such as dependency on external services, compatibility issues, or lack of customization options.

Custom API Scripts vs Plugins

To restate the case, both custom API scripts and plugins can be useful for different purposes and scenarios, depending on your needs and preferences. Some of the advantages and disadvantages of each approach are:

·         Custom API scripts

o    Advantages: more flexibility, control, and creativity; can access any data source or service; can fine-tune ChatGPT’s parameters and output

o    Disadvantages: more technical skills and effort required; need to handle errors and exceptions; need to update and test the code regularly

·         Plugins

o    Advantages: easy and fast to use; no coding required; can leverage existing integrations and features; can discover and try new plugins in the marketplace

o    Disadvantages: less flexibility and control; dependent on external services and developers; may have compatibility or quality issues; may not have the desired functionality or knowledge

In terms of scalability, both custom API scripts and plugins can be used to handle large volumes of requests and users, as long as they are optimized and reliable. However, custom API scripts may have further potential for scaling, as they can be adapted and improved to suit different use cases and scenarios, while plugins may have more constraints and limitations regarding functionality and performance, according to vendor specifications.

Conclusion

Custom API scripts are generally coded in Python and PHP programming languages. Plugins are off-the-shelf or ready-made API scripts available from various vendors and are accessible from the Plugin Store in the ChatGPT UI. Both API Scripts and plugins advance the use cases of ChatGPT in scope and scale. For example, instead of manual cut-and-paste operations, the accountant can upload complete files of various formats for “processing” via prompting. The accountant can build his/her API script that focuses on accounting or enable specialized accounting plugins from ChatGPT UI such as QuickBooks amongst others. Next time, intending to preserve accountants’ client confidentiality, we look at private database implementation of generative AI.

 

–Richard Thomas

Previous, Part V

Next, Part VII

Leave a Reply

Your email address will not be published. Required fields are marked *

UPCOMING TRAINING

SHARE TO SOCIAL MEDIA