Skip to content

Communication

4 modules

ModuleDescription
ईमेल पढ़ेंIMAP सर्वर से ईमेल पढ़ें
ईमेल भेजेंSMTP सर्वर के माध्यम से ईमेल भेजें
Slack संदेश भेजेंइनकमिंग वेबहुक के माध्यम से Slack चैनलों में संदेश भेजें
वेबहुक ट्रिगर करेंवेबहुक URL पर HTTP POST अनुरोध भेजें

Modules

ईमेल पढ़ें

email.read

IMAP सर्वर से ईमेल पढ़ें

Parameters:

NameTypeRequiredDefaultDescription
folderstringNoINBOXMailbox folder to read from
limitnumberNo10Maximum number of emails to fetch
unread_onlybooleanNoFalseOnly fetch unread emails
since_datestringNo-Fetch emails since this date (YYYY-MM-DD)
from_filterstringNo-Filter by sender email address
subject_filterstringNo-Filter by subject (contains)
imap_hoststringNo-IMAP server host
imap_portnumberNo993IMAP server port
imap_userstringNo-IMAP username
imap_passwordstringNo-IMAP password

Output:

FieldTypeDescription
emailsarrayईमेल ऑब्जेक्ट की सूची
countnumberईमेल ऑब्जेक्ट की सूची

Example: Read recent unread emails

yaml
folder: INBOX
unread_only: true
limit: 5

ईमेल भेजें

email.send

SMTP सर्वर के माध्यम से ईमेल भेजें

Parameters:

NameTypeRequiredDefaultDescription
tostringYes-Recipient email address(es), comma-separated for multiple
subjectstringYes-Email subject line
bodystringYes-Email body content
htmlbooleanNoFalseSend as HTML email
from_emailstringNo-Sender email (uses SMTP_FROM_EMAIL env if not provided)
ccstringNo-CC recipients, comma-separated
bccstringNo-BCC recipients, comma-separated
attachmentsarrayNo[]List of file paths to attach
smtp_hoststringNo-SMTP server host (uses SMTP_HOST env if not provided)
smtp_portnumberNo587SMTP server port (uses SMTP_PORT env if not provided)
smtp_userstringNo-SMTP username (uses SMTP_USER env if not provided)
smtp_passwordstringNo-SMTP password (uses SMTP_PASSWORD env if not provided)
use_tlsbooleanNoTrueUse TLS encryption

Output:

FieldTypeDescription
sentbooleanक्या ईमेल सफलतापूर्वक भेजा गया
message_idstringक्या ईमेल सफलतापूर्वक भेजा गया
recipientsarrayक्या ईमेल सफलतापूर्वक भेजा गया

Example: Send simple email

yaml
to: user@example.com
subject: Hello
body: This is a test email.

Slack संदेश भेजें

slack.send

इनकमिंग वेबहुक के माध्यम से Slack चैनलों में संदेश भेजें

Parameters:

NameTypeRequiredDefaultDescription
messagestringYes-Message text to send
webhook_urlstringNo-Slack incoming webhook URL
channelstringNo-Override channel (optional)
usernamestringNo-Override bot username
icon_emojistringNo-Emoji to use as icon (e.g., :robot_face:)
blocksarrayNo-Slack Block Kit blocks for rich formatting
attachmentsarrayNo-Message attachments

Output:

FieldTypeDescription
sentbooleanक्या संदेश सफलतापूर्वक भेजा गया

Example: Send simple message

yaml
message: Hello from Flyto!

Example: Send with formatting

yaml
message: Task completed successfully
username: Flyto Bot
icon_emoji: :white_check_mark:

वेबहुक ट्रिगर करें

webhook.trigger

वेबहुक URL पर HTTP POST अनुरोध भेजें

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-Target webhook URL
methodselect (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)NoPOSTHTTP request method
payloadobjectNo-JSON payload to send
headersobjectNo{}HTTP request headers as key-value pairs
content_typeselect (application/json, application/x-www-form-urlencoded, multipart/form-data, text/plain, text/html, application/xml)Noapplication/jsonContent type of the request body
auth_tokenstringNo-Bearer token for authorization
timeoutnumberNo30Maximum time to wait in seconds

Output:

FieldTypeDescription
status_codenumberHTTP प्रतिक्रिया स्थिति कोड
responseobjectHTTP प्रतिक्रिया स्थिति कोड
headersobjectHTTP प्रतिक्रिया स्थिति कोड

Example: Simple POST webhook

yaml
url: https://example.com/webhook
payload: {"event": "task_completed", "data": {}}

Released under the Apache 2.0 License.