# 메세지 내용에 쿠폰 번호 넣어서 보내기

라이센스 코드, 쿠폰 번호 등 "코드"를 판매 중이신가요? 메세지에 코드를 바로 넣고 싶으시다면 이렇게 해보세요.

## 메세지 템플릿 만들기

1. \[메세지 자동발송] 페이지에서 \[메세지 템플릿] 서브메뉴로 들어가 **"새 메세지 템플릿 추가"** 버튼을 눌러주세요.
2. 메세지 내용에 `#{디지털컨텐츠}` 변수를 넣어주세요. 실제 메세지에서는 이 변수가 쿠폰번호로 치환됩니다.

![변수가 포함된 템플릿](/files/NIoFPt4hN4g7eOs2yixn)

3. 반드시 **"디지털 컨텐츠 보기"** 타입의 버튼을 추가해 주세요.

> ⚠️ "디지털 컨텐츠 보기" 타입의 버튼이 없으면 디지털 컨텐츠를 연결할 수 없어 `#{디지털컨텐츠}` 변수가 치환되지 않아요.

![디지털 컨텐츠 버튼 필수](/files/g92dmxFeHLSRqRRjr3uY)

## 디지털 컨텐츠에 코드 등록하기

1. \[메세지 자동발송] - \[디지털 컨텐츠] 페이지에서 **"새 디지털 컨텐츠 추가"** 버튼을 눌러주세요.

![새 디지털 컨텐츠 추가](/files/fN0tCxwz4ba1rr64Xe8b)

2. 컨텐츠 종류를 \*\*"코드"\*\*로 선택해 주세요.
3. 코드를 한 주문에 하나씩 발송하고 싶기 때문에 \*\*"일회용 컨텐츠"\*\*를 선택합니다.

![코드 타입 선택](/files/4ZzQ22nAVJSnSJMXprxW)

4. 여러 코드를 "복사하기" - "붙여넣기"로 간편하게 입력할 수 있어요.
   * 자세한 방법: [매번 바뀌는 디지털 컨텐츠 발송하기](/guide/advanced/digital_content.md)


---

# 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.sendman.xyz/guide/advanced/coupon_in_message.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.
