> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syllable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a message

> How to configure custom greetings and automated messages related to First Agent using Syllable SDK.

A **message** is a greeting that the agent delivers to the user at the beginning of the conversation. It can be configured to use a different script depending on the date, day of the week, and/or time of the day. Our message will give the user a friendly greeting explaining what the weather agent can do for them.

You can create your greeting message using this sample code.

<Tabs>
  <Tab title="Python">
    ```python theme={null}
      from syllable_sdk import SyllableSDK
      from syllable_sdk.models import CustomMessageCreateRequest

    sdk = SyllableSDK(
    api_key_header='your_key_here'
    )

    message = sdk.custom_messages.create(request=CustomMessageCreateRequest(
    # The name of the message is used to reference it elsewhere in the system, so
    # you should pick something that’s easily identifiable.
    name='Tutorial Weather Greeting',
    # Default text that will be delivered at the beginning of a conversation with
    # an agent using this message.
    text='Hello! I\'m a weather agent. I can tell you the current weather in any city, or answer general questions about weather. What would you like to know?',
    # You can also set up a message with time-based rules, so that depending on
    # the timestamp at which the conversation begins, an agent can deliver a
    # different message. We'll skip this for the tutorial, but if you want to
    # know more, check out the docs linked below.
    rules=[]
    ))

    print(message)
    ```
  </Tab>

  <Tab title="TypeScript">
    ```typescript theme={null}
    import { SyllableSDK } from 'syllable-sdk';

    const syllableSDK = new SyllableSDK({
    apiKeyHeader: 'yourkeyhere',
    });

    const message = await syllableSDK.customMessages.create({
    // The name of the message is used to reference it elsewhere in the system, so
    // you should pick something that’s easily identifiable.
    name: 'Tutorial Weather greeting',
    // Default text that will be delivered at the beginning of a conversation with
    // an agent using this message.
    text: 'Hello! I\’m a weather agent. I can tell you the current weather in any city, or answer general questions about weather. What would you like to know?',
    // You can also set up a message with time-based rules, so that depending on
    // the timestamp at which the conversation begins, an agent can deliver a
    // different message. We'll skip this for the tutorial, but if you want to
    // know more, check out the docs linked below.
    rules: []
    });

    console.log(message);
    ```
  </Tab>
</Tabs>

**Before you move on, note the ID of the message that you created, as you'll need it later.**

We now have all the required components to create our agent, which we’ll do in the next step. Click “Create an agent” below to continue the tutorial.

### 📚 Documentation References

* **[Python SDK Docs – Messages](https://github.com/asksyllable/syllable-sdk-python/blob/main/docs/sdks/custommessages/README.md)**
* **[TypeScript SDK Docs – Messages](https://github.com/asksyllable/syllable-sdk-typescript/blob/main/docs/sdks/custommessages/README.md)**
* **[Console Reference Docs – Messages](/Resources/Messages)**
