> For the complete documentation index, see [llms.txt](https://happytalk.gitbook.io/happybot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://happytalk.gitbook.io/happybot/try/chatbot/step-6.md).

# Step 6. 시나리오 연결 & 미리보기

***

## 1.  시작 메시지와 시나리오 연결하기

{% hint style="success" %}
각 시나리오를 시작 메시지에 연결해보겠습니다.&#x20;

시작 메시지의 버튼을 눌렀을 때 어느 시나리오로 연결되면 되는지 \
**\[다음 시나리오 선택]**&#xC5D0;서 설정해줍니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2F9h5e9qDYVFMu5bvQPaqq%2Fimage.png?alt=media&amp;token=145ed1b8-6f24-4d34-ba2a-571072a3e383" alt=""><figcaption></figcaption></figure>

***

## 2.   미리보기

{% hint style="success" %}
지금까지 만든 내용을 미리보기로 테스트할 수 있습니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2F0RCwoiH4dwDTPQXRJcbt%2Fimage.png?alt=media&amp;token=7a26e064-9262-4d09-b54d-af5b241361b7" alt=""><figcaption></figcaption></figure>

***

## 3.  배포하기

{% hint style="success" %}
배포하기를 누르면 채널에서 변경된 내용을 확인할 수 있습니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FIuABQvJZpaHGadLHSlTf%2Fimage.png?alt=media&amp;token=790eccba-bfa3-446e-95aa-ddb8f19e76cf" alt=""><figcaption></figcaption></figure>

***

## 4.  변수 연결하기

{% hint style="success" %}
생성한 변수를 각 블럭의 \[고객 응답 설정] - \[변수 설정]에 연결해줍니다.

&#x20;A/S 1 블럭에서 고객이 이름을 입력하면, 미리 생성한 name 변수에 저장하겠다는 의미입니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FTMTORfR7i94jqYOCL62D%2Fimage.png?alt=media&amp;token=8ab9b576-feed-4d3d-bab5-4b7eccad99a4" alt=""><figcaption></figcaption></figure>

***

## 5.  변수 활용하기

{% hint style="success" %}
고객이 입력한 정보가 맞는지 확인하는 블럭에서 변수에 저장된 값을 불러올 수 있습니다.&#x20;

블럭의 메시지 내용에 {{  }}를 사용하여 변수를 적으면 해당 변수의 값이 화면에 보여집니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FuS6xlPtBzyAOr24L6Mxe%2Fimage.png?alt=media&amp;token=363f09c9-d7a6-4ace-8580-3c0fafab59e4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FTMTORfR7i94jqYOCL62D%2Fimage.png?alt=media&amp;token=8ab9b576-feed-4d3d-bab5-4b7eccad99a4" alt=""><figcaption></figcaption></figure>

***

## 6.  전체 시나리오 확인하기

{% hint style="success" %}
시나리오가 잘 연결 되었는지, 흐름이 이상하진 않은지 확인합니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FuZt4TdDrP5nuk7SWjMAf%2Fimage.png?alt=media&amp;token=482c0828-eef9-4ddf-bde1-26adc3efc8a4" alt=""><figcaption></figcaption></figure>

***

## 7.  챗봇 작동화면 확인하기

{% hint style="success" %}
에디터 상단의  \[미리보기] 버튼으로,\
작성한 시나리오가 챗봇에서 어떻게 작동하는지 확인할 수 있습니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FxxLZjZQaOYaKHTffMza4%2Fimage.png?alt=media&amp;token=76e6ba7e-0cd4-4392-abe1-65750d2cde0c" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">※ 참고 : 버튼 파라미터 설정하기</mark>

{% hint style="info" %}
고객이 직접 입력하지 않고 버튼 클릭을 통해 변수에 값을 저장할 수 있습니다.
{% endhint %}

<figure><img src="https://3240612988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9pepGQKkozVFbob9lhxe%2Fuploads%2FlihF9v3ctxnykHxRzGoZ%2Fimage.png?alt=media&amp;token=d46a652f-ab29-4398-8107-7a293d25c667" alt=""><figcaption></figcaption></figure>
