# Integration of GPT model with Rasa 3.1

**URL:** https://forum.rasa.com/t/integration-of-gpt-model-with-rasa-3-1/59110
**Category:** Rasa Open Source
**Created:** [July 24, 2023, 11:21am UTC](https://forum.rasa.com/t/integration-of-gpt-model-with-rasa-3-1/59110 "2023-07-24T11:21:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ponharshita-P](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ponharshita-p/32/23177_2.png) [@Ponharshita-P](https://forum.rasa.com/u/Ponharshita-P)
#### Post date: [July 24, 2023, 11:21am UTC](https://forum.rasa.com/t/integration-of-gpt-model-with-rasa-3-1/59110/1 "2023-07-24T11:21:52Z")

</div>

1. Can I **integrate GPT model** from transformers library with rasa framework. How? Provide code.

2. How to **combine the power of both rule-based(hardcoded) dialogue management and transformer-based language generation** depending on your bot’s specific needs and use cases?

3. How to make the bot rely on the **rule-based dialogue management system to provide predefined responses** for certain user intents, and for more open-ended or ambiguous intents, make it **use the transformer model to generate dynamic** and diverse responses.?

Please help me with code and elaborated examples. 🙏
