Skip to main content

Notifications

ChatGPT by Open AI with Dynamics 365 Finance and operation

This blog is for ChatGPT and D365 Finance and operation integration, As we know so many people are talking about ChatGPT now a days and why don’t we try to access ChatGPT features from Dynamics 365 finance and operation and let user interact with AI to get required help.

Yes it is possible to with some C# and X++ code combination.

To start with I will suggest everyone to play with ChatGPT for sometime and understand. (New chat (openai.com))

If you feel now you are ready for technical integration, its time to jump on Playground and understand some technical stuff.

Playground – OpenAI API (To understand each parameters, Refer https://www.makeuseof.com/how-to-use-gpt-3-openai-playground/, Blog.

Main parameters to understand.

1.Model,

2.Temperature (To fine tune output response)

3.Maximum length (Max output response)

4Top P,

5.Frequency Penalty

6.Presence penalty.

Once you understand more about parameter, It time to get API and secret key from beta.openai.com.

ApiCall = “https://api.openai.com/v1/engines/” + engine + “/completions”;

You can generate secret key from

Once you have all required information you can write C# code to integrate.

I have created D365 parameter table to store required parameters for ChatGPT API call.

Here you can find C# code for calling ChatGPT API.

You can refer same code in D365 and call using X++ reference.

Once you are done with above technical changes, Now we can proceed with parameters setup for API call and start playing with it

Here you have playground in D365 Finance and operation for your reference.

As a responsible technical I would suggest to have some restriction in place for responsible use of ChatGPT API if you wanted to implement same for customer.


This was originally posted here.

Comments

*This post is locked for comments