Notebook

openai-chatgptlangchain-pythonchatgptgenaielasticsearchelasticopenaiAIchatlogvectordatabasePythonsearchgenaistacksupporting-blog-contentvectorsubagents-with-elastic-agent-builderelasticsearch-labslangchainapplications

Using Subagents and Elastic Agent Builder to Bring Business Context into Code Planning - Setup

Learn how to build a specialized subagent that connects Claude Code to your Elasticsearch data, bringing user analytics and business context into your development workflow.

Configuration

Create a .env file in this directory with your credentials:

	ELASTICSEARCH_URL=
KIBANA_URL=
API_KEY=

[ ]

Method to bulk the data into Elasticsearch

[ ]

Knowledge Index

Engineering standards, policies, and roadmap priorities.

[ ]
[ ]

Error Logs Index

Production error frequency by module with affected users.

[ ]
[ ]

Support Tickets Index

Customer complaints with urgency markers and tier information.

[ ]
[ ]

Customer Data Index

Customer tier information (enterprise, pro, free) with MRR.

[ ]
[ ]

Create Tech Debt Advisor Agent

Retrieval agent with ES|QL and search capabilities via Agent Builder API.

[ ]

Cleanup

Delete all created indices and the agent.

[ ]
[ ]