The app uses Generative AI and Large Language Models (LLM) specifically PaLM2 APIs to understand and respond to user messages.
Here are some screenshots of the app:
A simple UI for the conversation with the clients
If the Summarize button clicked, the summary will appear on the bottom
This is a step-by-step guide to deploying a Python-based REST API on Cloud Run. The guide follows the instructions provided in the official Cloud Run documentation here.
To interact with the deployed API endpoints, their information below.
This endpoint allows you to have a conversation with the English Chat Bard model.
- URL:
<Your URL>/chat
- Method: POST
{
"message": "User's message in English"
}
{
"response": "Response from the English Chat Bard model"
}
This endpoint generates a summary of a conversation between a customer and the English Chat Bard model.
- URL:
<Your URL>/summary
- Method: POST
{
"content": "Conversation content in English"
}
{
"response": "Summary of the conversation in English"
}
This section includes endpoints related to the Arabic Chat Bard model.
This endpoint allows you to have a conversation with the Arabic Chat Bard model.
- URL:
<Your URL>/chat_ar
- Method: POST
{
"message": "User's message in Arabic"
}
{
"response": "Response from the Arabic Chat Bard "
}
This endpoint generates a summary of a conversation between a customer and the Arabic Chat Bard.
- URL:
<Your URL>/summary_ar
- Method: POST
{
"content": "Conversation content in Arabic"
}
{
"response": "Summary of the conversation in Arabic"
}
This endpoint translates English text to Arabic.
- URL:
<Your URL>/en2ar
- Method: POST
{
"response": "English text to be translated"
}
{
"response": "Translated Arabic text"
}
This endpoint translates Arabic text to English.
- URL:
<Your URL>/ar2en
- Method: POST
{
"response": "Arabic text to be translated"
}
{
"response": "Translated English text"
}
Contributions to the app are welcome! If you find any issues or want to add new features, feel free to open a pull request.
The app is released under the MIT License.