Member-only story
Integrate Google Bard in Flutter
Integrate Google Bard in Flutter
We will cover briefly:
- Creating a Google Bard server locally
- Integrate Google Bard UI in Flutter
- Send queries/prompts from Dart (Flutter) to JS (Google Bard)
Creating a Google Bard server locally
To create our local host server, we’ll utilize NodeJS. We create a folder called server
and run
npm init -y
This creates a package.json file in the server
Next, we install the dependencies like
npm install @google-ai/generativelanguage google-auth-library express
After that, we create a file called text-prompt.js
and start writing our server-side code in it. But first, before we start programming
we require the Makersuite API key.
What is MakerSuite?
MakerSuite is a software suite or platform designed to facilitate and enhance the process of creating, designing…