# Creating an Opportunity through Chatbot with a Custom Field in CRM

Automation of opportunities within the CRM can be optimized by allowing leads to choose options directly in a chatbot. This way, it is possible to capture relevant information and automatically create opportunities with the provided data.

In this tutorial, we will teach you how to configure a chatbot to create an opportunity in the CRM with a previously designated custom field. The lead will make a choice within an interactive menu, and that selection will be used to fill the custom field when creating the opportunity in the CRM.

{% hint style="danger" %}
**Attention! This configuration only applies if you have not yet created this process in your CRM. If a similar automation is already active, review its structure before implementing this solution.**
{% endhint %}

With this approach, we ensure that leads are categorized correctly from the first contact, making follow-up easier and optimizing the sales process.&#x20;

Follow the step-by-step guide and implement this functionality in your chatbot!<br>

{% embed url="<https://youtu.be/EtID_0smIlw>" %}

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/en/topics/general/crm/crm-tutorial-videos/creating-an-opportunity-via-chatbot-with-a-custom-field-in-crm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
