# AWS SQS Send Messsage Action

This provides a way to send message AWS SQS. Before adding AWS SQS message Action, user has to define a [**AWS Connection**](/connections/aws-connection.md). User need to provide following parameters to invode AWS SQS send message action.

#### QueryURL

* &#x20;User need to provide AWS SQS queue url.

#### DeletionInSeconds

User need to provide delay in seconds for FIFO queues, Keep '-1' for normal queue.

#### Function

* Javascript code to supply dynamic data to SQS message.
* "MessageBody","MessageAttributes" and "payload" objects are available in this code, function can be used to set message body and attributes from payload before sending to SQS.

```
//Example 1

MessageBody = payload;
MessageAttributes = { "From":Thingsup" };
```

#### Connection ID

User need to provide a Connection ID of AWS connection.

![Add AWS SQS Send Action](/files/r7S3lshCdRfQn7nPMNtE)

Please note the following points:

{% hint style="info" %}

* "payload" object is supplied from Action Trigger like Rules, Action Command etc.
* Data Response from AWS SQS will be available as Action Response.
  {% endhint %}


---

# 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.thingsup.io/actions/aws-sqs-send-messsage-action.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.
