---
title: How to work with Joe chatbot
sidebar_label: Overview
slug: /dblab-howtos/joe-bot
description: "How-to guides for Joe bot: get Postgres EXPLAIN plans, create indexes, reset sessions, manage long-running queries, and work with SQL optimization history."
---

## Guides
- [How to get a query execution plan (EXPLAIN)](/docs/dblab-howtos/joe-bot/get-query-plan)
- [How to create an index using Joe bot](/docs/dblab-howtos/joe-bot/create-index)
- [How to reset the state of a Joe session / clone](/docs/dblab-howtos/joe-bot/reset-session)
- [How to get a list of active queries in a Joe session and stop long-running queries](/docs/dblab-howtos/joe-bot/query-activity-and-termination)
- [How to visualize a query plan](/docs/dblab-howtos/joe-bot/visualize-query-plan)
- [How to work with SQL optimization history](/docs/dblab-howtos/joe-bot/sql-optimization-history)
- [How to get row counts for arbitrary SELECTs](/docs/dblab-howtos/joe-bot/count-rows)
- [How to get sizes of PostgreSQL databases, tables, and indexes with psql commands](/docs/dblab-howtos/joe-bot/get-database-table-index-size)

## Related
- [Joe chat commands reference](/docs/reference-guides/joe-bot-commands-reference)

[↵ Back to Guides](/docs/dblab-howtos/)
