After you set up Gemini in Firebase, you can start using it to enhance your Firebase developer experience.
To open the Gemini pane:
- Click ✦Gemini in Firebase, located in the upper right menu of the Firebase console.
The Gemini pane opens and persists across all pages in the Firebase console. You can now chat with Gemini and explore all of the features available in the Gemini pane.
If ✦Gemini in Firebase doesn't appear in the Firebase console, follow the steps in Set up Gemini in Firebase for a project to enable it.
Chat with Gemini
After you've opened the Gemini pane, you can immediately start a conversation with Gemini and begin asking questions using natural language.
The following steps demonstrate a conversation you might have with Gemini about Remote Config:
In the Ask me anything about Firebase field, enter a question and then click send Send. For example, you might ask something like the following:
When should I use a Remote Config rollout vs. an A/B Test?
Gemini displays its response.
Next, you can ask Gemini clarifying questions to expand on the conversation or paste code in and ask for advice.
You can continue the conversation, and continue sharing information and questions about the app and projects you're working on as you troubleshoot and Gemini will suggest improvements and optimizations and additional guidance. Gemini also includes source citations that list which documentation and code samples Gemini used to generate its responses.
Explore the Gemini pane in the Firebase console
The Gemini pane in the Firebase console has a number of features that simplify working collaboratively with Gemini.
Option | Action |
---|---|
notifications | View Firebase alerts. |
spark | Open Gemini in Firebase chat. |
contact_support | Get help: Search the developer documentation, contact support, and check Firebase service status. |
dark_mode | Choose a theme: Select a light or dark theme, or choose the device default. |
Clear the conversation. When you clear the conversation, all previous context is cleared and a new conversation session begins. | |
text_select_start | Dock the Gemini pane to a specific location on the console. You can choose to dock the pane to the left, top, right, or bottom. |
text_select_move_back_word | Undock the Gemini pane to return it to its original state. |
fullscreen | Maximize the Gemini pane to take up the entire console. |
fullscreen_exit | Restore the Gemini pane to its original size. |
Report an issue to the Firebase team about your experience with Gemini in Firebase. We encourage you to report bugs, suggest improvements, or provide general feedback. | |
close | Close the Gemini pane. |
Use AI assistance in Crashlytics
To use AI assistance in Crashlytics to generate insights about your crashes:
Open the Crashlytics dashboard in your project and select your app.
Locate and select a crash you want to investigate. The Crashlytics event page appears, including insights with one or more of the following:
- an analysis of the crash with a possible cause
- debugging instructions
- actionable next steps
- best practices
If you don't see the AI assistance in Crashlytics feature at the top of the event page, verify that Gemini in Firebase has been enabled (for setup instructions, see Set up Gemini in Firebase). Also, make sure that you're viewing a crash or ANR event. Non-fatal events are not yet supported.
If you want to provide code and context to obtain deeper insights, click Get started in the Want deeper insights? box.
Paste the code that Gemini in Firebase requests into the code field.
If you have more context or additional details to share that might help improve AI insights, add it to the Share any context or relevant details field.
Click Regenerate AI insights.
Gemini in Firebase generates updated insights based on your provided code and context.
Learn more at Get AI assistance in Crashlytics.
Get AI insights for messaging campaigns with Gemini in Firebase
Gemini in Firebase provides messaging campaign summarization, insights, and guidance to improve your Firebase Cloud Messaging and In-App Messaging campaign performance. By analyzing campaign data, Gemini in Firebase can help you understand your campaigns' reach and impact and suggests strategies to improve user engagement and growth.
Access AI insights for messaging campaigns
To use messaging campaign AI insights, make sure that your project has the following:
Gemini in Firebase is enabled for your project. Learn more at Set up Gemini in Firebase.
Firebase Cloud Messaging or In-App Messaging is enabled in your Firebase project.
At least one campaign exists and appears in the Firebase console.
After ensuring these requirements are met:
Open Messaging in the Firebase console to access campaign data.
After your campaign data loads, click Generate AI insights.
A summary and analysis of your messaging campaigns appears.
Generate GraphQL queries and mutations for Data Connect with Gemini in Firebase
To use AI assistance for Data Connect in the Firebase console to generate GraphQL based on natural language:
Open Data Connect in your project and, under Services, select your data source.
Click Data.
Click the Help me write GraphQLpen_spark icon.
Inside the text field that appears, describe in natural language the query or mutation you want to generate, and click Generate.
For example, if you're using the Movies data source referenced in the "Build with Data Connect (web)" codelab, you could ask, "Return the top five movies of 2022, in descending order by rating," which might return a result like the following:
query TopMovies2022 { movies(where: {releaseYear: {eq: 2022}}, orderBy: [{rating: DESC}], limit: 5) { id title rating releaseYear } }
Review the response:
- If the response looks correct, click Insert to insert the response into the code editor.
- If the response could be refined, click Edit, update the prompt, and click Regenerate.
After you've accepted the response, set the following in the Parameters section, if applicable:
- Variables: If your query or mutation contains variables, define
them here. Use JSON to define them, for example,
{"title":"The Matrix", "releaseYear":"1999"}
. - Authorization: Choose the Authorization context (Administrator, Authenticated, or Unauthenticated) with which to run the query or mutation.
- Variables: If your query or mutation contains variables, define
them here. Use JSON to define them, for example,
Click Run in the code editor and review results.
To test multiple queries or mutations in the code editor, ensure they are
named. For example, the following query is named GetMovie
. Move your
cursor into the first line of the query or mutation to activate the Run
button.
query GetMovie($myKey: Movie_Key!) {
movie(key: $myKey) { title }
}
For more advanced use cases, see AI assistance for Data Connect in the Firebase console use cases.
Use AI assistance in Firebase App Distribution
The Firebase App Testing agent uses the power of AI to create and run tests based on natural language prompts that you provide. The agent creates step-by-step tests that you can run on various virtual and physical devices to make sure your app is of the highest quality. For more information, see App Testing agent.
Use AI assistance in Firebase Studio
Gemini in Firebase provides an AI-assisted development experience within Firebase Studio. You can use Gemini in Firebase within Firebase Studio through two main interfaces:
- The App Prototyping agent (Prototyper view): This agent assists with prototyping and Next.js web app generation and publishing to Firebase App Hosting with Genkit-powered agentic AI flows. Learn more at Get started with the App Prototyping agent and Develop, publish, and monitor a full-stack web app with the App Prototyping agent.
- Firebase Studio workspace (Code view): Firebase Studio provides a full IDE that offers AI-assisted features to streamline your coding workflow—inline within your code editor and using chat, which can provide code suggestions, generate code, explain code concepts, update project files, run terminal commands, and interpret command output. Learn more at About Firebase Studio workspaces.
Learn more at AI assistance in Firebase Studio.