Skip to content

Forum in maintenance, we will back soon 🙂

PHP Function to cha...
 
Notifications
Clear all

PHP Function to chat. How could we modify the basic function to have a chat

4 Posts
3 Users
4 Reactions
103 Views
(@alfredo-gimbuta)
Posts: 12
Eminent Member Customer Registered
Topic starter
 

Hi y'all 

 

I'd like to build a tool like chatgpt, but to have it in my WordPress site. 

So first I have to have a function that talks to openai API to send messages back and forth like chatgpt.

Then to build the UI on WordPress.

Then to code javascript.

Any idea first the PHP function? How to modify the logic inside the example given in the course??

 

Thank you!!

 
Posted : 04/22/2024 2:19 pm
(@husein)
Posts: 484
Member Moderator
 

@alfredo-gimbuta Hello. So you want to build a chatbot and provide a nice interface?

You can find the code for building a chatbot in the automation workflows section in the prompt engineering course, where this would be your PHP function, and concerning the UI, you can build it to your own preference and ask chatgpt to help you build a nice user-friendly one.

 
Posted : 04/22/2024 6:58 pm
Hasan Aboul Hasan
(@admin)
Posts: 1219
Member Admin
 

@alfredo-gimbuta I will be publishing a video this week about building a chatbot on WordPress. There will be a full article with all the codes. Stay tuned.

 
Posted : 04/22/2024 7:12 pm
(@alfredo-gimbuta)
Posts: 12
Eminent Member Customer Registered
Topic starter
 

I do appreciate both of you guys!!!

 

Thank you!!

 
Posted : 04/23/2024 5:16 am
Share: