---
title: Use Chat GPT To Understand Code on Your ServiceNow Instance
description: In this tutorial I will show you how to use Chat GPT on a collection of script files from your ServiceNow instance.
image: https://blog.bithawk.ch/hubfs/Header%20Bild%20ServiceNow%20Blog.jpg
---

<https://bithawk.ch/>

- [Services](https://www.bithawk.ch/services/) 
    - [Innovation](https://www.bithawk.ch/services/innovation/)
    - [Consulting](https://www.bithawk.ch/services/consulting/)
    - [Engineering](https://www.bithawk.ch/services/engineering/)
    - [Operation](https://www.bithawk.ch/services/operation/)
    - [Technolgy](https://www.bithawk.ch/services/technology/)
- [Service Management](https://www.bithawk.ch/service-management/enterprise-service-management/) 
    - [Enterprise Service Management](https://www.bithawk.ch/service-management/enterprise-service-management/)
    - [Service Management](https://www.bithawk.ch/service-management/service-management/)
    - [Business Management](https://www.bithawk.ch/service-management/business-management/)
    - [Operation Management](https://www.bithawk.ch/service-management/operation-management/)
    - [Service Now Plattform](https://www.bithawk.ch/service-management/servicenow-plattform/)
    - [HR Service Management](https://www.bithawk.ch/service-management/hr-service-management/)
- [Partner](https://www.bithawk.ch/partner/) 
    - [Microsoft](https://www.bithawk.ch/partner/microsoft/)
    - [Hewlett Packard Enterprise](https://www.bithawk.ch/partner/hewlett-packard-enterprise/)
    - [Cisco](https://www.bithawk.ch/partner/cisco/)
    - [ServiceNow](https://www.bithawk.ch/partner/servicenow/)
    - [HP Inc.](https://www.bithawk.ch/partner/hp-inc/)
    - [Weitere Partner](https://www.bithawk.ch/partner/weitere-partner/)
- [Unternehmen](https://www.bithawk.ch/unternehmen/) 
    - [About us](https://www.bithawk.ch/unternehmen/about-us/)
    - [Jobs](https://www.bithawk.ch/unternehmen/jobs/)
    - [News & Events](https://www.bithawk.ch/unternehmen/news-und-events/)
    - [Geschäftsleitung](https://www.bithawk.ch/unternehmen/geschaeftsleitung/)
    - [Referenzen](https://www.bithawk.ch/unternehmen/referenzen/)
    - [Auszeichnungen](https://www.bithawk.ch/unternehmen/auszeichnungen/)
    - [Standorte & Kontakt](https://www.bithawk.ch/unternehmen/standorte-und-kontakt/)
- [Blog](https://www.bithawk.ch/blog/)

![Blog Banner Image](https://blog.bithawk.ch/hubfs/Header%20Bild%20ServiceNow%20Blog.jpg)

# Use Chat GPT To Understand Code on Your ServiceNow Instance

Erstellt von [Szepieniec Jesse](https://blog.bithawk.ch/de/enterprise-service-management/author/szepieniec-jesse) am Aug 7, 2023 12:52:37 PM

![Szepieniec Jesse](https://blog.bithawk.ch/hubfs/Jesse-Szepieniec-300x300.jpg)

In this tutorial I will show you how to use Chat GPT on a collection of script files from your ServiceNow instance. This allows you to chat with the code that is running on your instance.

You can follow along with the video, or with the blog post below.

### Prequisites (for following along)<https://jessems.com/posts/2023-07-13-ask-your-instance-use-chat-gpt-with-your-servicenow-instance-code#prequisites-for-following-along>

- An environment to run an iPython notebook.
- A ServiceNow instance to experiment with.
- An [OpenAI API(opens in a new tab)](https://openai.com/blog/openai-api) key.
- An [ActiveLoop(opens in a new tab)](https://activeloop.ai/) token.

 

### [Click here to go to the blog with Jesse (ServiceNow Solution Architect, BitHawk AG)](https://jessems.com/posts/2023-07-13-ask-your-instance-use-chat-gpt-with-your-servicenow-instance-code)

 

### Resources<https://jessems.com/posts/2023-07-13-ask-your-instance-use-chat-gpt-with-your-servicenow-instance-code#resources>

- [Google Colab for this Post(opens in a new tab)](https://colab.research.google.com/drive/1dogpeQWZCzEqeC0lOiiA5hah4rRbrKxQ?usp=sharing)
- [Repository for this Post(opens in a new tab)](https://github.com/jessems/Code-Understanding-ServiceNow)
- [Official Langchain tutorial(opens in a new tab)](https://python.langchain.com/docs/use_cases/code/twitter-the-algorithm-analysis-deeplake)
- [StackOverflow question(opens in a new tab)](https://stackoverflow.com/questions/76175046/how-to-add-prompt-to-langchain-conversationalretrievalchain-chat-over-docs-with)
- [GlideQuery Blog Post by ServiceNow(opens in a new tab)](https://developer.servicenow.com/blog.do?p=/post/glidequery-p1/)
- [A GlideQuery Cheat Sheet by Sam Meylan(opens in a new tab)](https://www.snow-adventures.com/blog/glidequery-cheat-sheet/)
- [Official PySNC documentation](https://servicenow.github.io/PySNC/)

 

 

---

### **Weitere Themen auf unserem Blog**

[Panik, kein guter Ratgeber: Ist Ihr Business für IT-Notfälle gerüstet?](https://blog.bithawk.ch/it-security/panik-kein-guter-ratgeber-ist-ihr-business-f%C3%BCr-it-notf%C3%A4lle-ger%C3%BCstet)

[Modernes und hybrides Arbeiten](https://blog.bithawk.ch/enterprise-cloud/modernes-und-hybrides-arbeiten)  
[Mitarbeiter – Ihre beste Waffe gegen Phishing](https://blog.bithawk.ch/it-security/mitarbeiter-ihre-beste-waffe-gegen-phishing)

 Themen: [Enterprise Service Management](https://blog.bithawk.ch/de/enterprise-service-management/tag/enterprise-service-management)

[p](tel:0041582260101) [m](mailto:marketing@bithawk.ch)

[b](https://www.bithawk.ch/)

- BitHawk AG
- Allee 1A
- 6210 Sursee
- [T +41 58 226 00 00](tel:0041582260000)

[Newsletter abonnieren](https://www.bithawk.ch/newsletter)

[t](https://twitter.com/BithawkA) [f](https://www.facebook.com/bithawk.ch) [n](https://www.linkedin.com/company/bithawk-ag/) [X](https://www.xing.com/company/bithawk) [y](https://www.youtube.com/channel/UCcBn71TQ1L0kWIEqEC-ZtOw)

- [AGB](https://www.bithawk.ch/assets/AGB/fe13bb1a3b/AGB-BitHawk_Deutsch-v2.pdf)
- [Impressum](https://www.bithawk.ch/impressum/)
- [Rechtliches](https://www.bithawk.ch/rechtliches/)

- [Retail Solutions](https://www.bithawk.ch/retail-solutions/)
- [Digital Signage](https://www.bithawk.ch/digital-signage/)
- [Cloud Backup](https://www.bithawk.ch/cloud-backup/)
- [IT Security](https://www.bithawk.ch/it-security/)

[b](https://bith.kraftausdruck.ch/)

- BitHawk AG
- Allee 1A
- 6210 Sursee
- [T +41 58 226 00 00](tel:0041582260000)

- [Retail Solutions](https://bith.kraftausdruck.ch/retail-solutions/)
- [Digital Signage](https://bith.kraftausdruck.ch/digital-signage/)
- [Cloud Backup](https://bith.kraftausdruck.ch/cloud-backup/)
- [IT Security](https://bith.kraftausdruck.ch/it-security/)

[Newsletter abonnieren](https://bith.kraftausdruck.ch/newsletter)

[t](https://twitter.com/BithawkA) [f](https://www.facebook.com/bithawk.ch) [n](https://www.linkedin.com/company/bithawk-ag/) [X](https://www.xing.com/company/bithawk) [y](https://www.youtube.com/channel/UCcBn71TQ1L0kWIEqEC-ZtOw)

- [AGB](https://bith.kraftausdruck.ch/assets/AGB/84b446a628/2001.3-AGB-IT-DL-Bison-ITS.PDF)
- [Impressum](https://blog.bithawk.ch/https://bith.kraftausdruck.ch/impressum/)
- [Rechtliches](https://bith.kraftausdruck.ch/rechtliches/)