> 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="/files/i50naS0YAOzAmrCKXM4N" alt=""><figcaption></figcaption></figure>

***

## 2.   미리보기

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

<figure><img src="/files/IRWR8esWOk9pO56UPdUw" alt=""><figcaption></figcaption></figure>

***

## 3.  배포하기

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

<figure><img src="/files/vwYbui3r4kHGQdRBYJMn" alt=""><figcaption></figcaption></figure>

***

## 4.  변수 연결하기

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

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

<figure><img src="/files/G5GpL27J0WFRrdJLcUf5" alt=""><figcaption></figcaption></figure>

***

## 5.  변수 활용하기

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

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

<figure><img src="/files/jyZlFw9bQAkG7VXw9zB9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/G5GpL27J0WFRrdJLcUf5" alt=""><figcaption></figcaption></figure>

***

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

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

<figure><img src="/files/FdPslgWllEjiNCgePmDQ" alt=""><figcaption></figcaption></figure>

***

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

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

<figure><img src="/files/bviWk9h4V0N4eOB6rfpO" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/nFpxLgbqyOpU0FlxewPt" alt=""><figcaption></figcaption></figure>
